Skip to content

Static Functions

Shake.create():Shake

description

Creates a Shake instance

Instance Functions

amplitude():Float

description

Returns the current value of the shake, based on the time passed since started.

cancel():Void

description

Stops the shake.

isShaking():Bool

description

Returns true if the shake is in progress

start(config:ShakeConfig):Void

description

Starts the shake using values from the passed config

@see ShakeConfig

update():Void

description

Updates the Shake instance. Call this every frame.