TimeSensor { exposedField SFTime cycleInterval 1 exposedField SFBool enabled TRUE exposedField SFBool loop FALSE exposedField SFTime startTime 0 exposedField SFTime stopTime 0 eventOut SFTime cycleTime eventOut SFFloat fraction_changed eventOut SFBool isActive eventOut SFTime time }Explanation :
TimeSensors generate events as time passes. TimeSensors can be used to drive continuous simulations and animations, periodic activities (e.g., one per minute), and/or single occurrence events such as an alarm clock.
When a TimeSensor becomes active it will generate an isActive = TRUE event and begin generating time, fraction_changed, and cycleTime events, which may be routed to other nodes to drive animation or simulated behaviors.
cycleInterval | : | defines the number of time intervals for the cycle. |
enabled | : | controls the TimeSensor. If this value is set to FALSE, then this sensor can run anymore. |
loop | : | defines whether the TimeSensor continue to cycle. If this value is false, it stops execution. |
startTime | : | |
stopTime | : | |
cycleTime | : | |
fraction_changed | : | |
isActive | : | |
time | : | |
touchTime | : |