<<VRML 2.0 - An Introductory view by examples

TouchSensor

[example]                                                       [run]

Touch sensors generate events as the pointing device "passes over" any descendants its parent group and/or the right button of the mouse is pressed.

{
exposedField SFBool enabled #
eventOut SFVec3f hitNormal_changed #
eventOut SFVec3f hitPoint_changed #
eventOut SFVec2f hitTexCoord_changed #
eventOut SFBool isActive #
eventOut SFBool isOver #
eventOut SFTime touchTime #
}