Page 1 of 1

How to use yaw pitch roll to quaternion in Unity

Posted: Sat Jan 11, 2020 12:08 pm
by parapoohda
I try to use utility to covert yaw pitch roll to quaternion.
Then I send it back to Unity.
It seem in Unity it is incorrect.
Are there ways to convert quaternion from Bepu to Unity.
Thanks.

Re: How to use yaw pitch roll to quaternion in Unity

Posted: Sat Jan 11, 2020 5:43 pm
by Norbo
Yaw/pitch/roll alone do not map to unique orientations. The result depends on a convention (axis order and such), and if that convention is different, the orientation will be different.

If you avoid euler angles, conversion should be more reliable.

Re: How to use yaw pitch roll to quaternion in Unity

Posted: Sun Jan 12, 2020 2:07 am
by parapoohda
thank you my brother already fix this.