• FEATURED

View more

View more

View more

### Image of the Day Submit

IOTD | Top Screenshots

### The latest, straight to your Inbox.

Subscribe to GameDev.net Direct to receive the latest updates and exclusive content.

# ODE problem with Hinge2 joint

Old topic!

Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.

No replies to this topic

### #1Vaclav  Members

Posted 09 February 2013 - 08:18 AM

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