sword exports separately from character

hike1

25-07-2006 17:42:07

I have a biped character with a sword linked to his right hand bone. When I export the .osm file I get 2 separate meshes, the
character and the sword, what's the trick to exporting them into
1 .mesh file?

jacmoe

25-07-2006 18:04:19

Why would you?
If they are two, the character can be used with and without the sword?
Just curious.. :)

hike1

25-07-2006 18:28:29

If they are two, the character can be used with and without the sword?
Just curious


He's nothing without his sword. Is it possible/usual to attach the
sword in code?

Zas

25-07-2006 19:21:36

You sure you attached the models to each other?

praetor

25-07-2006 20:40:43

You can't just link the sword to the bone, you have to actually attach the meshes together. Once the char is an editable mesh, select the "attach" tool in the modify panel and attach the sword's mesh to the char's.

jacmoe

25-07-2006 23:54:00

He's nothing without his sword. Is it possible/usual to attach the
sword in code?

Yes, indeed. You use Entity::attachToBone.
That would enable you to use him with or without his sword.