Originally posted by Bagoj:
Hi there!
I'm a little confused about dimensions and angles in openl space. Can anyone help me how to set up that z shold be pointing up (ok i can swap y, and z but its ugly) and the angle 0 is pointing to x+ and if i go counter clockvise 90 degrees it turns to y+. Or how you guys do it? I'm having troubles using sin and cos, can anyone tell me a perfect solution, please. Of coures i done it my way like glTranslatef(-heading + 90, ... but it looks disgusting, any other solutions? Thanks, and sorry for my poor english