timesensor
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
}
- Critical node for designing animations
- Usually routed to an interpolator
- cycleInterval should not be too short or frames of animation are skipped
- If stopTime is less than startTime it is ignored
- If startTime is less than 0 then the timesensors triggers on loading
- set loop to TRUE and startTime to -1 to play an animation forever
Example