- Home /
How to completely eliminate suspension while still having wheel-colliders?
Is there a proper way to do this? Note that I do not want to cancel out suspension on all the wheels, just 2 of them in the rear of my vehicle.
Answer by yant · Jun 03, 2015 at 04:47 PM
How about disabling WheelColliders you don't need the effect from?
Thank you for the answer! How would I do this though (keep in $$anonymous$$d that I only want to remove suspension)? Sorry, I am quite the newbie!
Could you elaborate more on what kind of effect are you assu$$anonymous$$g by "removing suspension"?
In case you simply want to discard any effect from some wheels -- simply set wc.enabled = false on them or just remove required WC components.
If you imagine a behaviour where you you would prohibit any compression and elongation of some of the suspension springs -- that's achievable with adjusting suspensionDistance parameter of the WheelCollider. Please note that setting suspensionDistance = 0 may have unwanted consequences when cornering (your vehicle may have a tendency to roll, or even flip over because of in-air wheels not supporting any mass).
"If you imagine a behaviour where you you would prohibit any compression and elongation of some of the suspension springs" Yeah that's exactly what I mean! Thanks for the answer and explanation (thumbs up)!
Your answer
Follow this Question
Related Questions
Mapping movement to a WheelCollider suspension? 2 Answers
How to translate car wheels to suspension? 1 Answer
What is the unit for wheelcollider suspension spring? 1 Answer
Wheelcollider turns too sharply 0 Answers
car not moving straight 3 Answers