[help] combine 2 meshes

ekow

24-02-2007 13:55:05

hello, i am currently new in NxOgre and Ogre.
i want to know how and what is the best method to combine 2 or more mesh in NxOgre.
for example, i want to have a person holding a sword in his hand (2 separate meshes), and the sword itself still stick in the hand whil the person's animation running (ex: attack animation).

oh, and i also don't know the different between using character or body, so i don't what the best to use for the person object or the sword object. so, currently i using body for all obejcts.. :?

Thanks for yur help.. :wink:

betajaen

24-02-2007 18:26:50

a character is best for the character, for the sword a body will do. You need to make it kinetic and position it in front of the character when it moves.

Best way to get position for the sword to go is attach the visual mesh to a bone of the players hand. Then get the global position of that then move the sword to that place.

ekow

26-02-2007 06:09:51

ok thanks, i'll try it right away.. :P