Hi folks...

In my application, I want to use a
PositionInterpolator to move an object around.  Here
is the scenario:

A)  The object is located at (35, 55, 45).
B)  I want to move it to (5, 55, 45) over a period of
5 seconds.
C)  What actually happens is the object "jumps" to (5,
0, 0).
D)  Here is the code:

Alpha a = new Alpha();
a.setLoopCount(1);
a.setIncreasingAlphaDuration(5000);
            a.setIncreasingAlphaRampDuration(2500);

PositionInterpolator pi = new
PositionInterpolator(a,object);
        pi.setStartPosition(35);
pi.setEndPosition(5);
pi.setSchedulingBounds(new BoundingSphere(new
Point3d(0.0,55.0,0.0), 10000.0f));


I guess the question is:  How do I tell the
PositionInterpolator "Move along the X-axis and keep Y
and Z as they are." ?
I have tried to set the AxisOfTranslation to the
Transform3D of the object.  That did not work.

Any help and/or examples would be greatly appreciated.

-Mark





__________________________________________________
Do You Yahoo!?
Yahoo! Shopping - Thousands of Stores. Millions of Products.
http://shopping.yahoo.com/

===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff JAVA3D-INTEREST".  For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".

Reply via email to