ReferenceScripting APIMotesetVelocity
Mote.setVelocity
methodGives its body a speed.
| Name | setVelocity |
|---|---|
| Kind | method of Mote |
| Called as | scene.pickItem(…).setVelocity(…) |
| As a node | Set Mote Velocity (logic graph) |
| Since | 0.3 |
Syntax
setVelocity(v: Place): voidParameters
| Name | Type | Description |
|---|---|---|
v | Place | The speed, each way |
Returns
Nothing.
Remarks
A mote without a body (or destroyed) does nothing, and the console says so once.
Notes from the community
Written by creators and checked by the docs' editors. Not part of Motion's official reference.