### How to use Euler Angles/Quaternions correctly?

Posted:

**Tue Jun 09, 2020 9:26 am**Hello there,

I've been going through many examples here, but still don't get how to use Euler Angles and Quaternions in Clarisse's Python . So I'm hoping that somebody here knows more than me. What I basically want to do is to get the orientation of an object in spac eto move another object along my reference object's direction given through 3 rotation angles. To make it more clearely: consider a guy with a bow. He points the bow in direction of a target and shoots. The arrow will move in direction of the target and this is exactly what I want to achieve.

I know it's possible with Clarisse's on-board tools, but I'm looking for a Python solution. I think I need Euler Angles or Quaternions to do that, but is this possible with the SDK functions in Clarisse? If yes, how do I have to use things like ix.api.GMathMatrix4x4d.compute_euler_angles?

Many thanks for any help,

Gerd

I've been going through many examples here, but still don't get how to use Euler Angles and Quaternions in Clarisse's Python . So I'm hoping that somebody here knows more than me. What I basically want to do is to get the orientation of an object in spac eto move another object along my reference object's direction given through 3 rotation angles. To make it more clearely: consider a guy with a bow. He points the bow in direction of a target and shoots. The arrow will move in direction of the target and this is exactly what I want to achieve.

I know it's possible with Clarisse's on-board tools, but I'm looking for a Python solution. I think I need Euler Angles or Quaternions to do that, but is this possible with the SDK functions in Clarisse? If yes, how do I have to use things like ix.api.GMathMatrix4x4d.compute_euler_angles?

Many thanks for any help,

Gerd