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 ;)

Reply via email to