Thanks for one answer, but it isn't as easy as you think:
Code: Select all
glTranslatef_(OBJ()\X, OBJ()\Y, OBJ()\Z)
glRotatef_(OBJ()\AngleX, 1.0, 0.0, 0.0)
glRotatef_(OBJ()\AngleY, 0.0, 1.0, 0.0)
glRotatef_(OBJ()\AngleZ, 0.0, 0.0, 1.0)
This moves the object to the Position and rotates it around the zeropoint.
Code: Select all
glRotatef_(OBJ()\AngleX, 1.0, 0.0, 0.0)
glRotatef_(OBJ()\AngleY, 0.0, 1.0, 0.0)
glRotatef_(OBJ()\AngleZ, 0.0, 0.0, 1.0)
glTranslatef_(OBJ()\X, OBJ()\Y, OBJ()\Z)
this rotates and moves FORWARD to the OBJ()\Angle direction.
but how can I move absolute and rotate through the meshself axis?