HoverController rotation

Software: Away3D 4.x

Dlate, Newbie
Posted: 07 June 2013 03:40 PM   Total Posts: 21

Heya,

I currently have a scene with a HoverController, wich the user can move about with the mouse.

Im wondering whats the best way to get the rotation of the hover controller?
Ideally id like it to be 360 degrees so i can apply it to other containers.

e.g. im rotating around a globe, i press on a marker and the camera moves to that position.

   

Avatar
Fabrice Closier, Administrator
Posted: 07 June 2013 03:55 PM   Total Posts: 1265   [ # 1 ]

You can access the PanAngle. Tho for what you want, you do not need this at all. Simply note the marker position, then use a tweener to set the HoverController.lookAtPosition(myTweenedMarkerPositionVector3D);

and possibly tween the distance as you may want to come a bit closer while going to the destination marker.

Saving the current distance and center globe (probably origin), the tweening back is the exact inverse.

   

Dlate, Newbie
Posted: 07 June 2013 03:59 PM   Total Posts: 21   [ # 2 ]

Yep, thats gonna work. Cheers Fabrice :D

   
   

X

Away3D Forum

Member Login

Username

Password

Remember_me



X