Wheel Collider and Slants/Slopes

Hi devs,

I’m currently developing a simple vehicle game and I’m using the build in Wheel Collider for my vehicle.
All in all it works fine so far, but there seems to be a problem with slants / slopes. Maybe just a point of correct configuration, but I don’t get it work.

When my vehicle stand still in front of a slant (a simple Cube object with rotation x = -30) and I move the vehicle forward it can’t climb up the slant. The front wheels are going onto the slant but then the Wheels are spinning wild, but the vehicle is not moving anymore.

The mass of the rigidbody is set to: 2200
The motorforce for all 4 wheels is set to 1200

wheel.collider.motorTorque = verticalInput * motorForce;

I already increased the motorforce to 3000, then the vehicle is climbing very slowly up.

What can I do to let the vehicle drive upwards on a slope?


1 Like

Try increasing the forward friction of the wheels

Thank you for your fast answer. I set the friction to 1,2,1,2,1 but there is no difference :frowning:

7855051--996913--wheel_friction.PNG

try increasing the extremum slip.

I increased extremum slip to 100 and after that to 1000. The wheels are spinning heavily then, much more than before.

Try watching this.
https://www.youtube.com/watch?v=f_ZO2gv4_z0