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 »

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: 4929
Joined: Tue Jul 04, 2006 4:45 am

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

Post 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.
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 »

thank you my brother already fix this.
Post Reply