IBM TJ Watson Research

IBMBouncingRectangleTT

IBMBouncingRectangleTT.mp4

Description

Rectangle and text that is moved back and forth using a position interpolator. 'Buttons', with mouse over highlighting of the borders done using conditionals, allow the speed of the interpolation to be changed by changing the speed of a TemporalTransform that contains a TimeSensor whose cycleInterval value remains fixed.

Translation is routed via a valuator to string field in a text node so that the position shown is constantly updated.

See also IBMBouncingRectangle which is very similar but done by changing the cycleInterval of the TimeSensor.

One noticeable difference in this content is that the Rectangle's motion is seamless as the speed is altered. In the original test case, without the Temporal Transform, the cycleInterval is changed and since the output is based on the cycleInterval, computed since the startTime, the position of the Rectangle tends to jump as the speed is changed.

Screenshot

Snapshot taken during position interpolation.



Back to main index