[ODE] motor stops don't work

slipch slipch <slipch at gsc-game.kiev.ua>
Tue Jul 15 00:56:02 2003


Hello ray,

Tuesday, July 15, 2003, 5:38:16 AM, you wrote:


rhacj> dBodyGetRelPointPos(body, 1, 0, 0, xyzNRF);
rhacj> dJointSetAMotorAxis (motor, 0, 2, xyzNRF[0], xyzNRF[1], xyzNRF[2]);
rhacj> dBodyGetRelPointPos(body, 0, 1, 0, xyzNRF);
rhacj> dJointSetAMotorAxis (motor, 1, 2, xyzNRF[0], xyzNRF[1], xyzNRF[2]);
rhacj> dBodyGetRelPointPos(body, 0, 0, 1, xyzNRF);
rhacj> dJointSetAMotorAxis (motor, 2, 2, xyzNRF[0], xyzNRF[1], xyzNRF[2]);

rhacj> dJointSetAMotorAngle (motor, 0, 0.0f);
rhacj> dJointSetAMotorAngle (motor, 1, 0.0f);
rhacj> dJointSetAMotorAngle (motor, 2, 0.0f);

 I think it needs to calculate and set the angle on each step.
 Much more easier solution is to use euler mode.


-- 
Best regards,
Konstantin Slipchenko                         mailto:slipch@gsc-game.kiev.ua