Wheel Joint 2D - How to fix suspension direction bug?

Hi,

I’m trying to use the new (4.5.2) Wheel Joint 2D. Everthing is fine except if I apply some motor speed not only the wheels starts to spin, but the direction of the suspension is spinning as well. The result is a pretty wobbly movement.

My setup:
→ Carbody (rigidbody 2d + polygon collider)
→ Frontwheel (rigidbody 2d + circle collider 2d + wheel collider 2d, connected to carbody)
→ Backwheel (rigidbody 2d + circle collider 2d + wheel collider 2d, connected to carbody)

Any idea what I’m doing wrong? I could find any tutorial about the new joint…

Thanks and best regards,
Matthias

Hi I did a 2D Vehicle Control for the asset store, in my script the WheelJoint2D are created automatic, but some tips for your vehicle are:

Make your wheels child of the carbody.
The carbody and the wheels need a rigidbody2d.
In your carbody add 2 WheelJoint2D.
In the WheelJoint2D drag and drop you wheel to connected rigidbody option.
Adjust the anchor option of the WheelJoint2D.
Your wheel object dont need WheelJoint2D, just your carbody.