ODE problem with Hinge2 joint

This topic is 1808 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

Recommended Posts

I've been trying to create a car model with the ODE physics engine.

I set the rear wheels to always face forward parallel with the chassis:



dJointSetHinge2Param ( joint, dParamLoStop, 0.0);
dJointSetHinge2Param ( joint, dParamHiStop, 0.0);


When the car is moving forward it's fine but when the car turns the rear wheels get turned somehow. I control only the front wheels, it's not four wheel steering.

I've tried to set other parameters of the Hinge2 joint as well like dParamERP and CFM, dParamStopERP and CFM or dParamBounce but they had no effect on this, I've also tried number 1 and 2 from these. (See in the ODE manual: Joint types -> Parameter Functions.)

Here are two screenshots to see the problem better:

[spoiler][/spoiler]

Thank you for your help.