Skip to content

CameraShakeAction ​

Inherits: EventAction < Resource

Shakes the camera of the player: a quake in a cutscene, an explosion in the valley, the roar of a boss. The shake dies away by itself over its duration; several shakes add up. The player's Camera shake setting scales it (0 = no shake). With a position and a radius it is weaker the farther the camera is from that position. See docs: World > Camera effects.

Properties ​

floatamount0.5
floatduration1.0
boolfrom_positionfalse
Vector3positionVector3.ZERO
floatradius40.0

Methods ​

Stringget_display_name()
Stringget_function_description()

Property descriptions ​

float amount = 0.5 ​

How hard the shake is: 0.2 a bump, 0.5 a hit, 1 an explosion

float duration = 1.0 ​

Seconds the shake takes to die away

bool from_position = false ​

Shake because of a place: the farther the camera is from it the weaker the shake, and gone at the radius

Vector3 position = Vector3.ZERO ​

Where the shake comes from (in the world)

float radius = 40.0 ​

Metres from the position at which the shake is gone

Method descriptions ​

String get_display_name() ​

Return the display name of this Action

String get_function_description() ​

Return a description of this action with parameter placeholders