away3d / away3d-core-fp10

Away3D engine for Flash Player 10
http://www.away3d.com
33 stars 11 forks source link

TargetCamera3D spiralling problem Away 3.6.0 #8

Open robsilv opened 12 years ago

robsilv commented 12 years ago

Hi guys,

I've noticed a conceptual problem with the TargetCamera3D where the camera is simply instructed to look at the target object after being moved. If for instance you press the left arrow key to move left 10 units, the action is completed and then the camera rotation is updated. If you repeat this process continually, you find yourself spiralling into an increasing orbit, moving further away from the target.

I think I've gone some way to identifying and solving the problem in the following posts, but I'm fairly new to 3D so I may be missing something:

http://robsilverton.wordpress.com/2011/08/24/away3d-targetcamera3d-spiralling-problem-fix/

http://robsilverton.wordpress.com/2011/08/26/away3d-targetcamera3d-v2-fixed-axes/

Hope that helps! :-) rob