Updated the action_Shake_Scenenode_3D extension.


Advanced 3D Shake (Pos, Rot, Scale)

This is a comprehensive and highly customizable shake action plugin for CopperCube. Unlike standard shake behaviors, this extension allows you to affect Position, Rotation, and Scale independently or simultaneously. It also includes advanced features like "Fade Out" for realistic impact dissipation and speed control.

Parameters

  • Scene_Node (scenenode) Target node to shake. If left empty, the node to which the behavior is attached will be used.
  • Shake_Duration (integer, default = 1000 ms) Duration of the shake effect in milliseconds.
  • Shake_Intensity (float, default = 2.0) Strength of the shake effect (amplitude of movement/rotation/scaling).
  • Shake_Speed (float, default = 1.0) Controls the frequency of the shake wave. Higher values result in faster vibration.
  • Use_Fade_Out (bool, default = false)
    • true → The shake intensity gradually decreases to zero over the duration (realistic impact).
    • false → The intensity remains constant until the end.
  • Random_Shake (bool, default = false)
    • true → Random jitter/noise.
    • false → Smooth sinusoidal oscillation (wobble effect).
  • Target Channels
    • Shake_Position (bool): Applies shake to X/Y/Z coordinates.
    • Shake_Rotation (bool): Applies shake to rotation angles.
    • Shake_Scale (bool): Applies shake to object size.
  • Active Axes
    • Axis_X / Axis_Y / Axis_Z (bool): Select which specific axes are affected. At least one must be enabled.
  • Action_On_Finish (action) Optional action triggered immediately after the shake completes and the node is reset.

Example Use Cases

  • Explosion Impact: Use Shake_Position with Use_Fade_Out = true. The shaking starts strong and fades away naturally.
  • Cartoon "Hit" Effect: Use Shake_Scale on Y and X axes. The object wobbles elastically when hit.
  • Dizziness/Status Effect: Use Shake_Rotation on the Z-axis (roll) with a low Shake_Speed and Random_Shake = false for a swaying camera effect.
  • Earthquake: Use Shake_Position on X and Z axes with Random_Shake = true on the terrain or camera root.

Files

3D Camera Shake.ccb 1.2 MB
22 hours ago
action_Shake_Scenenode_3D.js 5.5 kB
22 hours ago

Get action_Shake_Scenenode_3D

Download NowName your own price

Leave a comment

Log in with itch.io to leave a comment.