How to use yaw pitch roll to quaternion in Unity

Discuss any questions about BEPUphysics or problems encountered.
Post Reply
parapoohda
Posts: 92
Joined: Fri May 31, 2019 6:30 am

How to use yaw pitch roll to quaternion in Unity

Post by parapoohda » Sat Jan 11, 2020 12:08 pm

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.

Norbo
Site Admin
Posts: 4883
Joined: Tue Jul 04, 2006 4:45 am

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

Post by Norbo » Sat Jan 11, 2020 5:43 pm

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.

parapoohda
Posts: 92
Joined: Fri May 31, 2019 6:30 am

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

Post by parapoohda » Sun Jan 12, 2020 2:07 am

thank you my brother already fix this.

Post Reply