QuaternionToEuler - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: QuaternionToEuler (
/showthread.php?tid=472823)
QuaternionToEuler -
Baltazar - 30.10.2013
So, I've tried many ways to convert quaternion rotation to 3-dimensional angles, but none of them solve gimbal lock problem properly. At some angles I get NaN (not a number) values. Any good solutions for this?
Re: QuaternionToEuler -
Baltazar - 31.10.2013
bump
Re: QuaternionToEuler -
iZN - 31.10.2013
Are you using Gamer_Z's plugin for
Quaternion ?
Re: QuaternionToEuler -
Pottus - 31.10.2013
I think he's trying to convert San Andreas object positions quattoeuler won't work for those objects. If that is what your trying to do I'll dig out the function for it.
Re: QuaternionToEuler -
Baltazar - 01.11.2013
Quote:
Originally Posted by [uL]Pottus
I think he's trying to convert San Andreas object positions quattoeuler won't work for those objects. If that is what your trying to do I'll dig out the function for it.
|
Yes, that's exactly what I am trying to do
Re: QuaternionToEuler -
Pottus - 01.11.2013
I think I have that code on my old harddrive so it would be a lot of effort for me to retrieve unfortunately I'll have to do it after the weekend if you still need the code PM me on Sunday to remind me.