As I'm writing a space game I should really have the player's ship moving freely in all directions however PocketGL's examples only show rotation on the Y axis & movement on xyz.
When I add an x rotation I get my ship pitching correctly and when my movement is into the screen moving correctly but when I rotate & point back out the screen things go wrong. The forward, backward controls are reversed and depending on how I change code the pitch is also reversed so the ship goes down instead of up etc.
PocketGL has various commands derived from OpenGL but 2 days of searching for a suitable OGL demo have produced nothing of value other than a couple of mentions of the need to multiply matrices.
If anyone is familiar with 3D movement & is willing to give advice please respond. I can post my source code or email.
ps: I'm using PocketGL 1.0 at present (this affects the functions not the concept)
When I add an x rotation I get my ship pitching correctly and when my movement is into the screen moving correctly but when I rotate & point back out the screen things go wrong. The forward, backward controls are reversed and depending on how I change code the pitch is also reversed so the ship goes down instead of up etc.
PocketGL has various commands derived from OpenGL but 2 days of searching for a suitable OGL demo have produced nothing of value other than a couple of mentions of the need to multiply matrices.
If anyone is familiar with 3D movement & is willing to give advice please respond. I can post my source code or email.
ps: I'm using PocketGL 1.0 at present (this affects the functions not the concept)