re-set the home position (merged from separate thread)

Software: Away3D 3.x

zbw, Newbie
Posted: 27 June 2012 03:24 AM   Total Posts: 12

I use away3.6. When we encounter a problem:
I Camera (go) to a place,
Need to redirect the Camera Position, but the Camera can not move. Just change it the Position (for example: the Camera Position (100,100,200) to be changed to (0, 0, 0)).
Directly to the position assignment, camera moves. Is the need to redirect the Position of the Camera!
What can we do to help me solve it? Thanks

   

zbw, Newbie
Posted: 27 June 2012 06:45 AM   Total Posts: 12   [ # 1 ]

Direction refers to the location of the camera, for example: I enter a store, the origin (0,0,0) is at the door below the Camera coordinates into the shop (0,200 -1200), that is, into the shop, I would like tothe redirection Camera coordinates into the (0,0,0), which is re-set the home position.
Teach this idea can be achieved?

   

Avatar
theMightyAtom, Sr. Member
Posted: 27 June 2012 07:55 AM   Total Posts: 669   [ # 2 ]

camera.position = new Vector3D(0,200,-1200)
camera.lookAt = new Vector3D(wherever you like!)

Good Luck!

   
   

X

Away3D Forum

Member Login

Username

Password

Remember_me



X