IBM TJ Watson Research

IBMTimeSensorStarting

IBMTimeSensorStarting.mp4

Description

Each rectangle is moved along a horizontal path by a TimeSensor connected to a PositionInterpolator2D. The TimeSensor for the upper rectangle has loop set to false while the lower is set to true. The small white circle at the left end of the track indicates when the TimeSensor isActive.

The startTime, stopTime and cycleInterval are routed from the lower TimeSensor to the upper TimeSensor.

The buttons are routed to the lower TimeSensor as follows:

startTime and cycleInterval events are ignored by an active TimeSensor and no eventOut is generated either (See ISO/IEC 14472-1 sections 4.6.9 Time-dependent nodes and 6.50 TimeSensor). Hence clicking the Start button has no effect on the upper TimeSensor, even when it is inactive, if the lower TimeSensor is active. The same is true for setting cycleInterval (the lack of effect can be seen by clicking Restart and both rectangles will move at the same speed as before).

To have cycleInterval take effect the TimeSensors must be deactivated by Stop. Then the new cycleInterval can be clicked and Start will show the new value has taken effect.

Screenshot

Snapshot taken around 5s not buttons yet clicked



Back to main index