Sign in to follow this  


Recommended Posts

If I have a camera at (0, 0, 10) that is 10 units away from the origin, how can I then create and place a cube so that it's 10 units away from the origin and not the camera? Example.
void render()
camera.transform.translate(0.0f, 0.0f, 10.0f); // move the camera away from the origin by 10 units..

object.transform.translate(0.0f, 0.0f, 10.0f); // how can I make this call translate the object 
                                               // 10 units from the origin and not the camera?


Any ideas? [Edited by - angry on June 10, 2005 3:05:53 PM]

Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this