Hello all,
I have added Some objects and an PositionInterpolator for each  to a TransformGroup.
As you see code below, I add PositionInterpolators to a list to modify them later.
As I am working on a simulation project, I get the position of objects every 100 miliseconds
and I want animate the motion of object.I update the setTarget method, but nothing happens.
How should I do this ? It is somehow complicated for me .
 
Regards,
Saeed
 
TransformGroup agentTrans = new TransformGroup();
        agentTrans.setCapability(TransformGroup.ALLOW_TRANSFORM_WRITE);
        agentTrans.setCapability(TransformGroup.ALLOW_PICKABLE_READ);
        agentTrans3D = new Transform3D();
        atMulRotation = new Transform3D();
        agentTrans3D.setTranslation(new Vector3f(xxx, yyy, 3.0f));
        agentTrans3D.setScale(0.1f);
        atMulRotation.rotX(1.5f);
        agentTrans3D.mul(atMulRotation);
        agentTrans.setTransform(agentTrans3D);
        bg=new vrmlLoad("ambulance.wrl");
        PositionInterp olator posInt = new PositionInterpolator(alpha , atGroup[i-1]);
        posInt.setSchedulingBounds(new BoundingSphere());
        atInterpolator[i-1]=posInt;
        agentTrans.addChild(bg);
        agentTrans.addChild(posInt);
        atGroup[i-1] = agentTrans;
        bg1.addChild(agentTrans); 

__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.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