![]() |
![]() |
![]() |
![]() |
33 |
// Create Behavior to rotate shape
Transform3D yAxis = new Transform3D( );
Alpha rotationAlpha = new Alpha(
-1, Alpha.INCREASING_ENABLE,
0, 0,
4000, 0, 0,
0, 0, 0 );
RotationInterpolator rotator = new RotationInterpolator(
rotationAlpha, objTrans,
yAxis,
0.0f, (float)Math.PI*2.0f );
BoundingSphere bounds = new BoundingSphere(
new Point3d( 0.0, 0.0, 0.0 ), 100.0 );
rotator.setSchedulingBounds( bounds );
objTrans.addChild( rotator );
. . .