attachToBone relative position and orientation

Thunder0ne

05-10-2006 13:34:33

Is there a way to retrieve, on modeling time, the required offset for this Ogre3d function?
Say I want to pick an object from the environment and I perform this throguh the attachtobone function which needs the position and orientation relative to the bone it will be attached to.
Is there a way to save these data on modeling time?
If not, shall I just try several values until the object will be properly attached to the desider bone?

Lioric

05-10-2006 16:22:46

If you are using the skin modifier, for animation, add a dummy bone where the objects should be exactly placed, and attach the object to this bone in your application

Thunder0ne

05-10-2006 16:58:29

Many thanks.