Wheel Joint 2D: Which is wheel/body?

Wheel Joint 2D has a slot for a connected Rigidbody2D – to wheel or vehicle body?

It’s not immediately clear (to me) if a Wheel Joint 2D belongs ON a wheel, connecting each wheel to the vehicle (in the Connected RigidBody2D slot), or do multiple Wheel Joints belong on a vehicle, each connecting to unique wheels of the vehicle.

This repository of Unity scene examples for 2D physics includes examples for all the joints so might help you better: GitHub - Unity-Technologies/PhysicsExamples2D: Examples of various Unity 2D Physics components and features.

Specifically, if you look at the WheelJoint example driving a monster trunk: PhysicsExamples2D/Assets/Scenes/Joints/WheelJoint2D_Truck.unity at master · Unity-Technologies/PhysicsExamples2D · GitHub

Or you could just answer the question…

1 Like

You could also help yourself with an example showing you exactly where to connect things, something I thought better considering how difficult we found it to communicate last time.

Put the joint on the wheel, connect the joint to the vehicle body. All shown in the example above.

[quote=MelvMay, post: 3477141, member: 287484]
Put the joint on the wheel, connect the joint to the vehicle body.

[/quote]

BRAVO!

And thank you.