How to Getting the world position of a skeleton bone when mesh has rotated?

Software: Away3D 4.x

kato163, Newbie
Posted: 15 November 2012 09:59 AM   Total Posts: 1

var trans:Matrix3D = player.animator.globalPose.jointPoses[player.skeleton.jointIndexFromName(“Bip01 R Hand”)].toMatrix3D();
    var pos:Vector3D = trans.position;
    //trace(trans.position +”  pos”);
 
    ball.position=new Vector3D(player.mesh.position.x+pos.x,player.mesh.position.y+pos.y,player.mesh.position.z+pos.z);

the question is i rotated the player.mesh but the trans not change why? any one can help me thanks!);

   
   

X

Away3D Forum

Member Login

Username

Password

Remember_me



X