DIFF

class AnimatorTimerSource

Part of Tools

Members 5

private bool m_active = false
Referenced by Animate(), AnimateLoop(), IsRunning()
Show 1 more, Tick()
private bool m_loop = false
Referenced by Animate(), AnimateLoop(), and Tick()
private float m_target_value = 0
Referenced by Animate(), AnimateLoop(), GetTargetValue()
Show 2 more, SetValue(), and Tick()
private float m_value = 0
Referenced by AnimateLoop(), GetValue(), SetValue()
Show 1 more, Tick()
private float m_time = 0
Referenced by Animate(), AnimateLoop(), and Tick()

Methods 7

void Animate(float val, float speed = 1.0)

Starts animate value until value reaches target value.

val
float target value
speed
float speed of animating, units per second
References m_active, m_loop, m_target_value
Show 1 more, m_time
void AnimateLoop(float speed = 1.0)

Starts infinite animation loop <-1,1>. Based on sinus transition.

speed
float speed of animating , cycles per second (1.0 means one 360 degree sinus cycle per second: 0..1..0..-1..0)
References m_active, m_loop, m_target_value
Show 2 more, m_time, and m_value
float GetValue()

Returns actual animated value.

References m_value
float GetTargetValue()

Returns target value. While AnimateLoop returns angle of cycle in radians.

References m_target_value
void SetValue(float val)

Sets both value and target value.

References m_target_value, and m_value
void Tick(float timeslice)

Ticks the timer, is called by timer subsystem.

References Math.AbsFloat(), Math.Sin(), m_active
Show 5 more, m_loop, m_target_value, m_time, m_value, and Math.PI2