I have a simple setup for a car in a 2d “top down” arcade racer. I have 4 wheels attached to a chassis and I apply forces to the wheels to drive them back and forward.
The problem comes when you turn the wheels, and they keep on sliding in the same direction they already were. I need to kill the lateral velocity of the rigidbodies in their local x direction so they will drive forwards and turn properly.
For an example of the problem I’m trying to solve http://www.iforce2d.net/b2dtut/top-down-car does what I want to do in Box2d.
I’ve tried various methods to try and solve the problem I’m having but I’m a little stumped!
Thanks for any help you can give me.