A SERVICE OF

logo

121
Chapter 11
11. Sensors
Sensors are used to detect one of the following:
Time passing.
Pointer device events.
Sensors are often implemented to perform one of the following tasks:
Trigger an engine at a specied interval (csTimeSensor).
This task is most commonly used to animate geometries.
Generate rotations based on pointer device events (csSphereSensor).
Generate translations based on pointer device events (csPlaneSensor).
Determine whether the pointer device cursor is over a geometry (csTouchSensor).
This chapter explains how to implement sensors in the following sections:
•“csTimeSensor on page 122.
•“csSphereSensor on page 126.
•“csPlaneSensor on page 130.
•“csTouchSensor on page 134.