wandPosition Examples: Moving and Scaling
1: Move a cube around when you press button 1
/* move a cube around when you press the button. */ #include "User0" light ((1 -1 1)) object cube1 ((cube.pfb)) wandPosition((infinite), when(button1,cube1.($xpos $ypos $zpos)))
2: Make a cube change height as you move the wand up and down
/* change size as you move the wand up and down note that values of 0 or less than 0 are bad for the size message ... */ #include "User0" light ((1 -1 1)) object cube1 ((cube.pfb),(0 10 0)) wandPosition((infinite), when(,cube1.(1 1 $zpos)))
(c) Ben Chang