Motion (of Object)¶
-
class
Motion¶ Defined in Cycle.sc.
Motion is the base class for movers: objects that are responsible for moving Actors around the screen.
Subclasses: Wander, DPath, MoveTo, Approach, Orbit, Follow, PolyPath, Track, Chase, Jump.
Properties¶
Inherited from Object:
| Property | Description |
|---|---|
| name |
Defined in Motion:
| Property | Description |
|---|---|
| client | The Actor to which this is attached. |
| caller | The object that will get cue()’d when the motion is complete. |
| x | |
| y | |
| dx | Step size. |
| dy | |
| b-moveCnt | |
| b-i1 | |
| b-i2 | |
| b-di | |
| b-xAxis | Which axis is the motion along? |
| b-incr | Bresenham adjustment. |
| completed | |
| xLast | |
| yLast |
