Messages |
detect | string | set the type of node to detect |
distance | float | set the intersection distance from the wand |
Events |
event | wand, user, node, xsize, ysize, zsize, xpos, ypos, zpos, xori, yori, zori | any wand events are generated while in the space |
start | wand, user, node, xsize, ysize, zsize, xpos, ypos, zpos, xori, yori, zori | a wand and associated user have begun pointing |
stop | wand, user | a wand and associated user have stopped pointing |
Debugs |
pointing |
Comments |
constructor pointNodeTrigger
destructor ~pointNodeTrigger
method reset
1 set detect type to ygNode
2 set distance to 10.0
method message
1 set the type of node to detect
2 set the intersection distance from the wand
method app
1 for all users in the world
1.1 for each user wand2 for each wand previously pointing at geometry
1.1.0.1 if the wand is pointing at geometry
1.1.0.1.0.0.1 printf("hit %s\n",geode->getName());
1.1.0.1.0.0.2 printf("args: %s\n",args.c_str());
1.1.0.1.0.0.3 if the number of wand flags is positive
1.1.0.1.0.0.3.1 for each wand flag1.1.0.1.0.0.4 if not previously pointing generate start event
1.1.0.1.0.0.3.1.1 any wand events are generated while in the space
1.1.0.1.0.0.4.1 a wand and associated user have begun pointing
2.1 if not currently pointing then generate stop event3 a wand and associated user have stopped pointing
method pointingAtMe