how does a camera rotate around object?

Software: Away3D 4.x

datouaizi, Member
Posted: 01 November 2011 07:56 AM   Total Posts: 98

how does a camera rotate around an object ?
away3d 4 has methords?

   

Avatar
Choons, Sr. Member
Posted: 01 November 2011 04:44 PM   Total Posts: 281   [ # 1 ]

check out the HoverDragController.as example here

https://github.com/away3d/away3d-examples-broomstick/tree/master/src

you can import that class complete and make a camController object

   

datouaizi, Member
Posted: 03 November 2011 06:33 AM   Total Posts: 98   [ # 2 ]
Choons - 01 November 2011 04:44 PM

check out the HoverDragController.as example here

https://github.com/away3d/away3d-examples-broomstick/tree/master/src

you can import that class complete and make a camController object


HoverDragController only can rotate 180 degree,but i don`t want to limit camera,how to modify script?

thanks!

   

Avatar
Darcey, Moderator
Posted: 03 November 2011 09:44 AM   Total Posts: 209   [ # 3 ]

Away3D.Controllers.HoverController

Demo of usage and with complete source code available for download can be found @

http://www.allforthecode.co.uk/aftc/forum/user/modules/forum/article.php?index=5&subindex=3&aid=311

Tilt is limitied to -90 and +90 though, pan is 360.

You will need to make your own Camera Controller using Camera3D if you want that.

   
   

X

Away3D Forum

Member Login

Username

Password

Remember_me



X