ARGH! Trigonometric problems....
I need some help on how to make a polygon always face the camera... I''m using glLookAt function for the camera movement...
All the data I have is the position of the camera and the position of the polygon..
I made some calcs to rotate the polygon like using the ArcTangent of the difference of the position of the camera and the position of the polygon and then rotate the polygon using the result of the calc... but it works sometimes, not always... In some positions, it does some strange things... well.. if you could help me, please, answer me...
Thanks... and see ya soon...
=====================================Regards,Juan Pablo (McKrackeN) Bettini Psychoban Official Site:http://www.psychoban.comPsychoban on iTunes App Store:http://itunes.apple.com/us/app/psychoban/id378692853?mt=8
Dude, check out the tutorials, sprites always face the camera and there''s a tutorial on sprites.
It''s the moving bitmaps in space one, or whatever it''s called... Uses stars in it as the bitmap...
S.
S.
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement