Hi,

Perhaps I don't understand what you want to do, but perhaps you could:

  • Get the global bone orientation using ang_for_bone
  • Transform that to a matrix with ang_to_matrix
  • Get the entity's orientation
  • Transform the orientation to a matrix
  • Compute the relative orientation using this
  • Transform back the result into an angle


Hope that helps.

Last edited by 3dgs_snake; 09/28/12 13:41.