wandPosition
The wandPosition node gives you the position of the wand, either when it enters or leaves a space, or continuously while it is inside it. You can use this information to control attributes of other nodes, move objects around, or start animations from a certain point.Example:
wandPosition(volume(infinite),when(inside,print($xpos $ypos $zpos)))
Node Reference
Derived from: ygSpaceMessages
| Message | Parameters | Default | Description |
| volume | string volumeShape, float coordinates ... sphere x y z radius box x1 y1 z1 x2 y2 z2 cylinder x1 y1 z1 x2 y2 z2 radius point x y z infinite |
infinite | defines the shape of the trigger's active area. the volumeShape can be one of the following:
|
Events
| Event | Variables | Description |
| inside | $user $xpos $ypos $zpos | updates position constantly while a user is inside. |
| enter | $user $xpos $zpos | a user has entered the space |
| exit | $user $xpos $ypos $zpos | a user has left the space |
| firstenter | $user | a user has entered the space |
| empty | all users have left the space |
(c) Ben Chang