🎉 Celebrating 25 Years of GameDev.net! 🎉
Not many can claim 25 years on the Internet! Join us in celebrating this milestone. Learn more about our history, and thank you for being a part of our community!
Rotations
Hello....
a fast question to ya ...
how can i rotate o object like a cube for example around your own axis ???
coz its spinning around invisible thing..
i really dont know how i can do that ...
thanx and byby
what the hell? maybe glRotatef(). don''t know what you''re asking.
JoeMont001@aol.com
www.polarisoft.n3.net
JoeMont001@aol.com
![](http://www.geocities.com/him_voxdei/image/angryfire.gif)
Ever tried to glTranslatef() the box?
If you do this after the rotatation(s) the box doesn''t turn around his own axis anymore...
If you do this after the rotatation(s) the box doesn''t turn around his own axis anymore...
Hehe, well...
when i rotate a cube, for example and he is distant of origin.
he doesn''t rotated in own axis. he rotated like a carrousel...
understood ???
really sorry about my poor english...
i think the best way to do a fixed rotation is using push and popping the matrix but i''m not so sure...
thanx anyway...
[]''s
when i rotate a cube, for example and he is distant of origin.
he doesn''t rotated in own axis. he rotated like a carrousel...
understood ???
really sorry about my poor english...
i think the best way to do a fixed rotation is using push and popping the matrix but i''m not so sure...
thanx anyway...
[]''s
What you gotta do in your case is to translate first and than rotate, I think.
I''ve been having troubles making a quad rotate around its own axis, and than move in the direction its pointing. I think I need to use vectors and rotate them..
I''ve been having troubles making a quad rotate around its own axis, and than move in the direction its pointing. I think I need to use vectors and rotate them..
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement