A SERVICE OF

logo

134
Chapter 11: Sensors
csTouchSensor
csTouchSensor tracks the location of the pointer device cursor and generates up to ve
outputs when the cursor is over the geometry associated with csTouchSensor. If the
pointer device cursor passes over multiple geometry, events are generated based on the
geometry nearest the camera.
Associating csTouchSensor and Geometry
A geometry is associated with a csTouchSensor when the geometry and csTouchSensor
nodes are descendants of the same node, as shown in Figure 11-4.
Figure 11-4 Placing csTouchSensor in a Scene Graph
csShape
csShape
csTransform
csGroup
csTouchSensor