How to binding a object3D(such as a gun or knife) to another object3d(mesh has skeletion animation)

Software: Away3D 4.x

liuyi, Member
Posted: 31 October 2011 01:37 AM   Total Posts: 65

Hi guys,

I want add a gun to a human’s hand, the human has skeleton animation.
How can I binding the gun to the hand?

btw, the human is a md5mesh and md5anim.

Can I get a example or some tips for that?
Thanks very much!

   

liuyi, Member
Posted: 31 October 2011 04:38 AM   Total Posts: 65   [ # 1 ]

If can get the hand’s current position, it should be resolved.
Need help!!!!

Thanks!

   

inSertCodE, Sr. Member
Posted: 31 October 2011 07:48 AM   Total Posts: 105   [ # 2 ]

Take a look at this (at the end). I didn’t have a chance to test it yet but it should work. Please report the results…

http://videometry.blogspot.com/2011/05/mocap-to-molehill-via-3d-studio-max-and.html

   

liuyi, Member
Posted: 31 October 2011 10:49 AM   Total Posts: 65   [ # 3 ]

inSertCodE, thanks. I will test it later and post the result here.

   

liuyi, Member
Posted: 01 November 2011 02:36 AM   Total Posts: 65   [ # 4 ]

Hi inSertCodE,

You give me big helps! Thanks!
Your code works fine on my test project.

core code:
gunHolder.transform = (_mesh.animationState as SkeletonAnimationState).globalPose.jointPoses[26].toMatrix3D();

Anyone else if has the same issue, just read the post
http://videometry.blogspot.com/2011/05/mocap-to-molehill-via-3d-studio-max-and.html

   
   

X

Away3D Forum

Member Login

Username

Password

Remember_me



X