Joint Anchor Issue [Solved]

I would step into DrawDebugData and find out why your code is not getting called, otherwise the time you spent setting it up is just gone... plus once it's working you can use it in the future, plus you will convince me that the rendering is not the problem 😀

Perhaps you could post a few more pics showing the car in different situations. From the one you showed earlier I get this image of the car rotated slightly counter-clockwise, the positions of the bodies look correct but just the rotations are stuck at zero. An image with the front wheels 'steering' would be good.

Are you doing rotations anywhere else? Since you are doing 3D maybe you are doing consecutive rotations, perhaps on a different axis that could confuse things. Is it possible that you get the angle in two places, and use it as a negative value somewhere and positive somewhere else, thereby canceling each other?
I have no clue how, but I messed around with the physics a little and it works now! It still has to be worked on a little to give a realistic driving feel, but at least it works! 😀 Also, I was able to get debug draw to work. Below are some images. Thanks for your help!

With debug draw:

Image

With models:

Image


Edit by Erin Catto: I modified your URLs so the pictures would display. Please look at the format of the URL and use the same format for your other posts.

Original thread: https://box2d.org/forum/viewtopic.php?t=5843