Rob,

I found the Away3Dlite HoverCamera bug.

In the Away3Dlite Trunk the HoverCamera has the following bug. Please
note that the Y and Z axis are swapped.

130 var gx:Number = target.x + distance*Math.sin
(_currentPanAngle*toRADIANS)*Math.cos(_currentTiltAngle*toRADIANS);
131 var gz:Number = target.y + distance*Math.cos
(_currentPanAngle*toRADIANS)*Math.cos(_currentTiltAngle*toRADIANS);
132 var gy:Number = target.z - distance*Math.sin
(_currentTiltAngle*toRADIANS)*yfactor;

they should be

130 var gx:Number = target.x + distance*Math.sin
(_currentPanAngle*toRADIANS)*Math.cos(_currentTiltAngle*toRADIANS);
131 var gz:Number = target.z + distance*Math.cos
(_currentPanAngle*toRADIANS)*Math.cos(_currentTiltAngle*toRADIANS);
132 var gy:Number = target.y - distance*Math.sin
(_currentTiltAngle*toRADIANS)*yfactor;

Now the HoverCamera is working perfectly after this fix.

On Nov 16, 3:59 pm, Rob Bateman <[email protected]> wrote:
> Hey Mogg
>
> not seeming able to reproduce the bug - do you have an example class that to
> hand that demonstrates the problem?
>
> cheers
>
> Rob
>
> On Fri, Nov 13, 2009 at 7:53 PM, mogg <[email protected]> wrote:
> > *ping* :)
>
> > On Nov 8, 7:11 am, mogg <[email protected]> wrote:
> > > In Away3Dlite (trunk): if theHoverCamera'starget is at 0,0,0 then it
> > > works perfectly!
>
> > > If the target is anywhere like 0,-200,0 then thehovercamerais always
> > > below the object looking up. Even with a tilt setting of 0.
>
> > > if the target is anywhere like 0,200,0 then thehovercamerais always
> > > above the object looking down. Even with a tilt setting of 0.
>
> --
> Rob Bateman
> Flash Development & Consultancy
>
> [email protected]

Reply via email to