JumpTo (of Jump)¶
-
class
JumpTo¶ Defined in Jump.sc.
This makes an
Actorjump to a certain location.Example usage:
(theRobot setMotion: JumpTo 240 150)
Properties¶
Inherited from Jump:
| Property | Description |
|---|---|
| client | |
| caller | |
| x | |
| y | |
| dx | |
| dy | |
| b-moveCnt | |
| b-i1 | |
| b-i2 | |
| b-di | |
| b-xAxis | |
| b-incr | |
| completed | |
| xLast | |
| yLast | |
| gx | |
| gy | |
| xStep | |
| yStep | |
| signal | |
| illegalBits | |
| waitApogeeX | |
| waitApogeeY | |
| name |
Methods¶
-
init(theClient theX theY [theCaller]) Initializes the JumpTo motion.
Parameters: - theClient (heapPtr) – The
Actorto which this applies. - theX (number) – The x target.
- theY (number) – The y target.
- theCaller (heapPtr) – The optional object that will be cue()’d when the jump is complete.
- theClient (heapPtr) – The
-
moveDone()
