[ODEJAVA] Problems limiting angles

Hello guys!

I have problem when I limit angles on hinges or amotors. The problem is that it doesn’t work. I have the next code:


hin0 = robot.joints.get(0);
hin0.setMinAngleStop(-(float)Math.PI);
hin0.setMaxAngleStop((float)Math.PI);

“hin0” is a JointHinge and I have a JointAMotor joining the same two bodies as “hin0” and with the same values in the dParamLoStop and dParamHiStop. The aMotor has a velocity and a force.

I have read the ode manual and I have searched information on the net but I don’t know what is happening. Somebody knows how can I do?

How much force does the AMotor have?

Thank you for your help but I find the error.

I don’t set the bouncyness param to the hinge and the force of the motor was too big.

Now, with the bounce set to 1 and the motor force set to 10 all works.

Thank you very much. See you.