[OGRE] Linking entities
Anyone using OGRE know if it's possible to create two or more meshes and then link them together into a single entity? What I'm thinking is a mesh for a character, and then another mesh for each weapon or other visible accessory the character can use. When the character arms a weapon (or equips armour, etc.) it becomes visible by linking the meshes within the entity rather than having to continually move both "manually". This way lots of accessories can be added without having to create an entirely new mesh for each different possible combination of equipped accessories.
So, is it possible? Any clue?
I'm not at all experienced with using OGRE, but from looking at the code to it I was under the impression that it was based upon the concepts of a Scene Graph, by this logic it should be farily trivial to attach another entity either on a bone or onto the scene graph node.
The method I was looking at in particular was the Entity::attachObjectToBone() method in the API reference.
Please correct me if I'm wrong, afterall I've not used OGRE that much.
The method I was looking at in particular was the Entity::attachObjectToBone() method in the API reference.
Please correct me if I'm wrong, afterall I've not used OGRE that much.
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement