Orientation of a cone understanding

Hello All,

We are trying to draw a cone with its axis aligned to a certain vector in the inertial frame. Does anyone know how to do this ?
We have tried specifying its orientation with quaternions but we are not sure of what the quaternion is specified with respect to !

Thank you

Hey!

Have you taken a look at the Transforms class? Specifically, Transforms.headingPitchRollQuaternion:

https://cesiumjs.org/Cesium/Build/Documentation/Transforms.html?classFilter=Transforms#.headingPitchRollQuaternion

This should allow you to specify a heading, pitch & roll rotation from a fixed frame. There’s also an example usage underneath it. Try it out and let me know if that solves your problem!