entity heading, pitch and roll

Hello everybody,

What I know:

  • the value of Entity.orientation is a Quaternion;
  • knowing Entity.position and desired heading, pitch, roll (in radians), I can set orientation =
Transforms.headingPitchRollQuaternion(position, heading, pitch, roll)

What I want to know:

having Entity's position and orientation (the Quaternion), how to get values of heading, pitch and roll?

Thanks, Boris.

hello,
You should check this pull

Great, thanks.