Thanks for the reply. I checked out that method and it seems to be
doing a little more than I need. I'm not great at math so I'm having
trouble, but basically is there a way to reset the targetpanangle to a
value within -360 to 360 after hover has ended? I guess I could also
find what the original value has changed to based on the number of
revolutions the camera has made?

On Mar 10, 8:37 am, Andreas Engstrom <[email protected]>
wrote:
> 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