Global orientation of JointPose

Software: Away3D 4.x

Radagast, Newbie
Posted: 02 June 2015 04:05 PM   Total Posts: 28

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?

   
   

X

Away3D Forum

Member Login

Username

Password

Remember_me



X