- Home /
Wheel Collider Tilt?
I am trying to design a bicycle using the wheel colliders + rigidbody setup. It all works fine, except that i want to somehow disable the bicycle from tilting (or at least limiting the tilt value) when the user is making a turn.
I already trying freezing z rotation on the rigidbody but it only helps a little, any other suggestions?
Comment
Answer by Onk3y · Aug 14, 2017 at 03:11 PM
Freezing the z rotation might work but it'll look very clunky. Moving the center of mass is the right approach but moving it left/right a very hard thing to get right. It is easiest when you move the rigidbody center of mass below the lowest point of your wheel colliders. With that approach your bike will lean by itself.