Class: Yuki::Animation::Anchor
- Inherits:
-
TimedAnimation
- Object
- TimedAnimation
- Yuki::Animation::Anchor
- Defined in:
- docs/4_Systems_005_Animation.rb
Overview
Class bringing target to an anchor position (dynamically)
Instance Attribute Summary
Attributes inherited from TimedAnimation
#begin_time, #end_time, #time_source
Attributes included from Yuki::AnimationMixin
Instance Method Summary collapse
-
#done? ⇒ Boolean
Anchor animations are always done.
-
#initialize(on, to, z_offset) ⇒ Anchor
constructor
Create a new Anchor.
-
#start(begin_offset = 0) ⇒ self
Start the anchor animation.
-
#update
Update the anchor animation.
Methods inherited from TimedAnimation
#duration, #parallel_add, #play_before
Methods included from Yuki::AnimationMixin
#begin_offset_for_next_animation, #duration
Constructor Details
#initialize(on, to, z_offset) ⇒ Anchor
Create a new Anchor
1079 1080 |
# File 'docs/4_Systems_005_Animation.rb', line 1079 def initialize(on, to, z_offset) end |
Instance Method Details
#done? ⇒ Boolean
Anchor animations are always done
1087 1088 |
# File 'docs/4_Systems_005_Animation.rb', line 1087 def done? end |
#start(begin_offset = 0) ⇒ self
Start the anchor animation
1084 1085 |
# File 'docs/4_Systems_005_Animation.rb', line 1084 def start(begin_offset = 0) end |
#update
Update the anchor animation
1090 1091 |
# File 'docs/4_Systems_005_Animation.rb', line 1090 def update end |