Hello I like playing with creating a game engine and recently loaded MD5 mesh with animation. The model and move about the world (terrain) forward, backward, rotate left and right. The camera only follows the character at this point. However I am stuck in the math for moving left and right. Not rotation left and right but a shuffle left and right.
For example:
Moving forward works fine.
radians = rotationY * 0.0174532925f;
positionX += sinf(radians) * forwardSpeed;
positionZ += cosf(radians) * forwardSpeed;
I've been through trig, calc, diffe, etc.. in university many many years ago so my math is needing a refresh. Any advice how to make a movement left and right in 3D Space?