The camera controller in Awaybuilder tries to solve the rotate the shortest way problem when animating the camera. I'm not 100% sure it applies to what you are trying to do but the problem seems very similar. However, it uses rotationX, Y and Z instead of pan and tilt.

You can find it in the "navigateTo" method of "awaybuilder/camera/ CameraController.as"

.andreas


On 9 Mar 2009, at 21:50, derek wrote:


I'm wondering if anyone can point me in the right direction with how I
might find the shortest route to a pan or tilt angle value. Basically,
I'm using a hover camera that moves around an object when the user
click and drags. There are also buttons to move the camera to a
certain side of the object. If the user pans or tilts the camera
1000's of degrees and then clicks a button to go to a side, the camera
has to move around the object many revolutions before reaching the
correct face. This is more of an actionscript question than related to
a3d, but just hoping someone might have encountered this problem
before and has advice. Thanks.
Derek

Reply via email to