« Return to Thread: [Breaking Change] DO3D has new props localRotationX / Y /Z , pitch, yaw, roll are methods again

Re: [Breaking Change] DO3D has new props localRotationX/ Y /Z , pitch, yaw, roll are methods again

by Jon Bradley-2 :: Rate this Message:

Reply to Author | View in Thread


On Jul 23, 2008, at 12:12 PM, Paul Tondeur wrote:

When I expect to receive a value of +/- 90, it will return NaN. I've

located this problem to changes in the Matrix3D class.

The following code execution is happening and will trace NaN as well:


If the issue is with matrix2euler, change this

euler.y = Math.asin(-m.n31/sz);

to this

var n:Number = -m.n31/sz;
euler.y = Math.asin(n);

Hope that fixes it.

best,

jon

_______________________________________________
Papervision3D mailing list
Papervision3D@...
http://osflash.org/mailman/listinfo/papervision3d_osflash.org

 « Return to Thread: [Breaking Change] DO3D has new props localRotationX / Y /Z , pitch, yaw, roll are methods again