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

Re: [Breaking Change] DO3D has new propslocalRotationX/ 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 5:13 PM, Tim Knip wrote:

Don't see a solution for this (think its just the nature of

euler-angles)... anyone?


Tricky, definitely.

The only way to really do it is to record the previous euler result and using it to choose the proper solution. 

It's pretty easy to do for a situation where you have that previous result, but when that result does not exist you're always going to get 2 valid solutions (at a minimum) and infinite solutions (cosine 0) at a maximum.

BTW, I think the code I posted is a more generic solution than what is there right now. I'd just have to go through it and test it out. It doesn't handle scale though.

cheers,

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