Hey guys!
I have a little problem with orientation in 3D.
I want to give global position and orientation to chosen object (_slave) from animated object at specific place (JointPose). That means i pick JointPose by name and take its transform Matrix3D. This way i can have position in 3D space easy
_sceneTransformMatrix = _master.mesh.sceneTransform.clone();
var pose:JointPose = _master.animator.globalPose.jointPoses[jointIndex];
_matrix = pose.toMatrix3D(_matrix);
_slave.sceneTransform.position = Utils3D.projectVector(_sceneTransformMatrix, _matrix.position);
But how to deal with rotation? I need somhow add local (JointPose) orientation and global (_master) orientation to rotate _slave.
Maybe its simple but i dont really know how to bite this. Any idea?