HayManMarc
Member
I'm playing around with physics and trying to get an object to move straight ahead. I'm using this bit of code:
It moves the object, but causes it to turn slightly to the left. How do I make it so it moves straight forward?
For context, the object is a car viewed from the top.
Note: I'm hoping for a simple solution, as true realism (perfect driving sim) is NOT the goal.
Code:
var forward_x = lengthdir_x(8000, -phy_rotation);
var forward_y = lengthdir_y(8000, -phy_rotation);
physics_apply_force(x, y, forward_x, forward_y);
For context, the object is a car viewed from the top.
Note: I'm hoping for a simple solution, as true realism (perfect driving sim) is NOT the goal.