Manipulations with the Camera

Software: Away3D 4.x

MaximFirsov, Newbie
Posted: 06 October 2013 02:45 PM   Total Posts: 1

Hi, guys!
Plz, look at the simple demo (not Flash grin): https://sketchfab.com/
1. You can rotate demo’s camera using the left mouse button
2. You can shift a focus point camera with a mouse wheel (not scroll, just wheel press down/up).

The problem is in step 2.
How I can repeat it in Away3D?
I think it is regards [Camera.lookAt]...
Thanx.

   

Avatar
GoroMatsumoto, Sr. Member
Posted: 06 October 2013 05:10 PM   Total Posts: 166   [ # 1 ]

Try to use these with mouse event:
camera.moveUp(-/+);
//camera.moveDown(-/+);
camera.moveLeft(-/+);
//camera.moveRight(-/+);

 

   

Avatar
loth, Sr. Member
Posted: 08 October 2013 09:31 AM   Total Posts: 236   [ # 2 ]

hello here the most simple class for camera
no need controler.
you juste have to move _center vector3d
and update camera

tweenLite is optional but with you can smooth auto rotate camera

 

File Attachments
CamControl.zip  (File Size: 2KB - Downloads: 163)
   

fmax, Newbie
Posted: 10 October 2013 04:23 PM   Total Posts: 10   [ # 3 ]

Very nice! Thanx!

 

   
   

X

Away3D Forum

Member Login

Username

Password

Remember_me



X