Original Post
Hey everybody, I'm making a game that takes place in zero-G, which means that "up" and "down" mean nothing. I want my player to rotate around its local axes when WSADEQ are pressed, but unfortunately the engine I'm using only understands Euler angles. So I'm trying to make some functions to accomplish this. The problem is that the engine can't do quaternions, and matrix programming on it is tedious and bug-prone. So I'm trying to do it with trig funcs, etc. I'm looking for something like this:
void ang_rotate_yaxis(angle& ang, double theta)
{
ang.yaw += /* your complex trig-function etc. formula here*/ ;
ang.pitch += /* formula here */ ;
ang.roll += /* formula here */ ;
}
Any ideas? If you need details about the engine, just say so.