PDA

View Full Version : Translate only one object



04-18-2005, 11:44 PM
i pick on the screen one object . How can i translate only the specific object and not all the objects ?

Batou
04-18-2005, 11:55 PM
>> How can i translate only the specific object and not all the objects ?

use glTranslate , then draw your object where ever u want , use glLoadIdentity and then draw other objects

uruk
04-19-2005, 12:22 AM
glPushMatrix();
glTranslatef(x,y,z);

//draw your object

glPopMatrix();