Raycast car sliding

My car chassis uses raycasting to calculate the suspension force needed essentially making the car a hovercar. As the car has no contact with the ground it needs simulated traction to prevent it from sliding around. This is the part I can’t seem to get right.
Car Sliding Clip
The traction is fine on flat surfaces but on inclines, the car slides down.

Currently, to simulate the traction I take the point velocity at each wheel point and apply drag onto the wheel (faster the car is sliding, the higher the force applied backwards). There is also a drag force applied sideways on the car to prevent it from rolling in turns.

I can’t think of what to do to stop this sliding.


Possibly because the front wheels are further from the middle than the front this affects the torque they apply, but I’m not sure.

Game link to see for yourself

1 Like