Simple camera shake effect's icon

Simple camera shake effect 1.0.0 Deleted Misc 3.2 Community

Submitted by user GarromOrcShaman; MIT; 2019-11-22

Godot camera shake plugin
Adds one node. You can put this node under any 3D camera as child. Remember that position of camera is now under control of node. Use provided functions to move camera without causing mess, or at least during effect.

Properties

shake_size
Maximal size of shaking

shake_speed
Speed of shaking

shake_x
Enables/disables shaking on global X axis

shake_y
Enables/disables shaking on global Y axis

shake_z
Enables/disables shaking on global Z axis

Functions

start_effect()
Call it once. Initializes and starts shaking

stop_effect()
Call it any amount of times. Stops shaking

set_position(Vector3 positon)
Smoothly move camera during shaking, use this instead of manipulating camera directly

teleport(Vector3 positon)
Instantly moves camera during shaking, use this instead of manipulating camera directly

You still can manipulate camera directly but only if effect is not active, otherwise you'll cause mess


View files Download Submit an issue Recent Edits