Car-like Physics - Basic Maths to Simulate Steering
- by Reanimation
As my program stands I have a cube which I can control using keyboard input. I can make it move left, right, up, down, back, fourth along the axis only. I can also rotate the cube either left or right; all the translations and rotations are implemented using glm.
if (keys[VK_LEFT]) //move cube along xAxis negative
{
globalPos.x -= moveCube;
…