I'm making top-down race game in GM:S with Box2D, the car is controled in unusual way: player sets direction and engine's speed, and the car uses them: turns to the desired direction and reaches speed. But the question is about the "residual" speed after the turn. Here is what I mean:
I make rotation by applying torque and move with applying force. I don't have tyres, it's just one plain object.
So how can I get rid of this momentum? I'm working in GM:S, but I'd like to hear any solution, I can adapt it easily.
var ad = angle_difference(phy_rotation, desiredDir); physics_apply_torque((angleTorque) * -sign(ad)); // rotate the car dx = lengthdir_x(spd, -phy_rotation); dy = lengthdir_y(spd, -phy_rotation); physics_apply_force(phy_position_x, phy_position_y, dx, dy); // move the car