class

PointClickEngine::Graphics::Effects::ObjectEffects::FloatEffect

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

Makes objects float gently up and down

Constructors

new(amplitude : Float32 = 10.0_f32, speed : Float32 = 1.0_f32, duration : Float32 = 0.0_f32)
Source

Instance methods

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

Apply effect to target (implemented by subclasses)

Source
phase
Source
phase=(phase : Float32)
Source
reset

Reset effect to start

Source
rotation
Source
rotation=(rotation : Bool)
Source
rotation_amount
Source
rotation_amount=(rotation_amount : Float32)
Source
speed
Source
speed=(speed : Float32)
Source
update(dt : Float32)

Update effect state

Source