Attach objects to a bone

Jun 6, 2011 at 8:28 PM

Ok... how do i do that?  let`s say i want to add a weapon.

Let`s say i declare it as:

IAttachable weapon;


How do i load it? I really dont understand. Could i have some pointers?

Jan 11, 2013 at 2:34 AM

Hey I hope someone else responded to this since 2011 :) but the way you do it is that you get the Transform (which is a matrix) of the Bone you want to attach an object to and then set that transform to your other object - you will also need to apply an offset so you don't overlap with your model's mesh. I don't have example code of this yet.. working on it myself.

Jan 12, 2013 at 1:34 PM


Hello everyone.I have exactly the same problem. For weeks I'm trying to figure out how to attach an object model of a bone. I found your example library today. Can I use this library to attach a model of a bone? I looked all threads and none contain an answer to this. Thank you very much for your example and made ​​this wonderful project. good day ^ 

Jan 12, 2013 at 8:58 PM

hey look at this