class

PointClickEngine::Graphics::Effects::ObjectEffects::ShakeEffect

Inherits PointClickEngine::Graphics::Effects::Effect < Reference < Object

Makes objects shake/vibrate

Constructors

new(amplitude : Float32 = 5.0_f32, frequency : Float32 = 10.0_f32, duration : Float32 = 0.5_f32)
Source

Instance methods

amplitude
Source
amplitude=(amplitude : Float32)
Source
apply(context : EffectContext)

Apply effect to target (implemented by subclasses)

Source
decay
Source
decay=(decay : Bool)
Source
direction
Source
direction=(direction : ShakeDirection)
Source
frequency
Source
frequency=(frequency : Float32)
Source
reset

Reset effect to start

Source
update(dt : Float32)

Update effect state

Source

Nested types