< Zurück | Inhalt | Weiter >


The RotationInterpolator can be used to linearly interpolate between two sets of axis angle rotations. The RotationInterpolator modifies a TransformGroup, which will in turn affect the position of all its child Nodes. The TransformGroup must have the ALLOW_TRANSFORM_WRITE capability set.

//create the Interpolator—by default interpolate

//between Y angle = 0 and Y angle = 2p

Interpolator interpolator = new RotationInterpolator ( alpha, tg );