- Home /
Why are my axles with rigidbodies falling off my car?
I have a Car with six wheels all which collide and the wheel colliers are separate objects from the wheel. without a rigid body attached to the axles/suspension the axles and wheels stay attached to the car, but when i add a rigid body to all the axles so my antirollbar code works, the axles all suddenly fall off the car. The wheels stay attached to the axles but the axles all fall off.
You need to use a configurable joint to connect your rigidbody objects together. You need to set it up to constrain the distance movement between them to 0, but to allow rotation around the correct axis.
Answer by Melvin8D · Oct 22, 2014 at 01:35 AM
I think you might need to make the axles a child object to the car body. if you've done that already, I don't know.
Thank you very much. I am very new with this and have just dived head first. How do i constrain the distance movement between them to 0, but to allow rotation around the correct axis?
there are tick boxes in the rigidbody component so that you can allow or restrict movement or rotation to each axis.
Something a bit like this, this was set up to lock everything, I've changed it and set one rotation axis to free. This should hopefully be all you need to change(pick the right axis for your needs) but if not play around with the settings a bit. Hope this helps.
PS : Set your linked object at the top(Where I have my "Ship_Hull_Ca$$anonymous$$")
Your answer
Follow this Question
Related Questions
collision not working at high speeds 3 Answers
Car dynamics? 0 Answers
RigidBody Clings to Walls 0 Answers
Weird bounching with Rigidbodies (2D) 0 Answers
Is there a rigidbody character controller 3rd person that can handel stairs (steps)? 1 Answer