- Home /
Can i use wheel colliders with a character controller?
For my side scrolling car game, i would like to move the car (a dune buggy) with a character controller because the phisics often react in a strange way, but how can i make the suspensions react to rocks and obstacles? Can i use the character controller for move the car and wheel collider to detect the road collider? Or there is a clever way?
Thanks.
You'll have to use raycasts to find the distance to the ground and add your own up force on the character controller. The wheel collider is for a very specific function so probably wouldn't be suitable.
Answer by Edy · Aug 16, 2010 at 11:35 PM
Probably plain WheelColliders without character controller is the best way for doing what you need: as it's a side scrolling game, you won't have to deal with sideways friction (the hardest thing).
I'd recommend you to follow any basic car / wheelcollider tutorial. For your side scrolling game, you must only ensure that the car's local Z angle is always 0 (assuming Z towards the front), and its global X position is constant.
Your answer