I’m new to OpenGL and I’m experimenting around a bit. So far everything went nice but now I’m stuck with a problem that’s probably easy to solve but I’m just not getting it.
Currently I’m having a little object that can be steered with keyboard keys. When the up or down key is pressed the object accelerates and when left and right arrow keys are pressed the object gets rotated. So far so good but I wanted to change the movement behaviour in a more newtonian direction. When the object gets accelerated it contains it’s movement speed and direction. I’m having projection, view and model matrices in my project. When I use translate and rotate my object this also changes the movement direction. To move the object I translate my model matrix with the movement vector, containing the movement speed in the y-axis. In the vertex shader the projection, view and model matrices get multiplied.
What would be the best way to implement a movement like this? I just can’t figure it out.