No replies so far, but I'm still pretty sure this is a bug.

On 23 mrt, 15:19, Apprentice <[email protected]> wrote:
> Hi,
>
> I'm new to this community and only just started with Away3D.
> I was just playing around in broomstick and believe I found a small
> error:
> Upon getting the Euler angles from an object radians are converted to
> degrees and we receive a vector of angles in degrees. But upon setting
> the Euler angles from an object, the angles in degrees we provide are
> again converted from radians to degrees. This is unexpected. If we
> were to get the Euler angles and then set it with the same Euler
> angles like so:
>
> var a:Vector3D = view.camera.eulers;
> view.camera.eulers = a;
>
> then nothing should change, but this is not the case because on
> setting Eulers we suddenly have to provide angles in radians, not in
> degrees. So the above code actually multiplies the current angles by
> (180/PI)^2.
>
> For setting individual angles however it is correct (getting rotationX
> returns an angle in degrees and we set it in degrees).
>
> So therefore I believe this is an error and the fix is easy of course,
> change: RADIANS_TO_DEGREES into DEGREES_TO_RADIANS at lines 581-583 in
> Object3D.as
>
> Let me know if I'm wrong (I'd be very interested in the reason)

Reply via email to