Dark Bit Factory & Gravity
PROGRAMMING => Freebasic => Topic started by: ScottyBrosious on December 30, 2006
-
gltranslatef(x,y,z)
Say I wanna position something at
glTranslatef(-30,0,0)
then rotate it (just) around that point
how do I do it without it revolveing all around the screen?
then also
next object at
glTranslate(-15,0,0)
it rotateing around just that point also
without revolveing all around the screen?
last question
do I also have to glTranslatef(0,0,0) before second objoect?
Please would someone explain to me
glTranslatef()
and also how to rotate some oject around that point (only)?
Thanks
and some short code would be nice
-
Hi scotty the trick is to do things in reverse in opengl.
So
glTranslate (x,y,z)
glRotatef (ang,1,1,1)
drawobject...
will do what you want.