A SERVICE OF

logo

136
Chapter 11: Sensors
Hit Events
csTouchSensor generates the following three hit events whenever the pointing device is
over a geometry associated with a csTouchSensor:
hitPointrepresents the coordinates where the pointer device cursor intersects the
geometry.
hitNormalrepresents the surface normal vector where the pointer device cursor
intersects the geometry.
hitTexCoordrepresents the surface texture coordinates where the pointer device
cursor intersects the geometry.
touchTime Events
The touchTime event represents the current time. csTouchSensor generates touchTime
events when any of the following conditions are true:
1. The pointer device cursor is over the geometry when the pointer device button is
depressed.
2. The pointer device cursor is currently over the geometry and isOver is TRUE.
3. The pointer device button is released.