Hey Aurélien

yes, this has been corrected in the latest trunk code. Thanx for pointing it
out!

Rob


On Thu, Mar 18, 2010 at 11:24 AM, Aurélien Nauwelaers <
[email protected]> wrote:

> Hello all,
>
> I recently updated my away3D on the SVN (I was using the 3.4.0 zip
> before).
> I noticed a change in HoverCamera3D behavior. The panAngle variation
> now changes the camera distance (which was the case only with
> tiltAngle change + yFactor different from 1).
>
> Looking on the code I noticed this :
>
> var gx:Number = target.x +
>
> distance*Math.sin(_currentPanAngle*toRADIANS)*Math.cos(_currentTiltAngle*toRADIANS);
> var gz:Number = target.y +
>
> distance*Math.cos(_currentPanAngle*toRADIANS)*Math.cos(_currentTiltAngle*toRADIANS);
> var gy:Number = target.z +
> distance*Math.sin(_currentTiltAngle*toRADIANS)*yfactor;
>
> Target.y and target.z seem to have been swapped, restoring their order
> makes the cam behave correctly again.
>
> -->
> var gx:Number = target.x +
>
> distance*Math.sin(_currentPanAngle*toRADIANS)*Math.cos(_currentTiltAngle*toRADIANS);
> var gz:Number = target.z +
>
> distance*Math.cos(_currentPanAngle*toRADIANS)*Math.cos(_currentTiltAngle*toRADIANS);
> var gy:Number = target.y +
> distance*Math.sin(_currentTiltAngle*toRADIANS)*yfactor;
>
> Hope this helps ;)
>



-- 
Rob Bateman
Flash Development & Consultancy

[email protected]
www.infiniteturtles.co.uk
www.away3d.com

To unsubscribe from this group, send email to 
away3d-dev+unsubscribegooglegroups.com or reply to this email with the words 
"REMOVE ME" as the subject.

Reply via email to