Advertisement

[OGRE] Linking entities

Started by August 30, 2004 01:04 PM
1 comment, last by coldacid 20 years, 2 months ago
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.
Advertisement
*faceplant*

I've never noticed that in the docs, yet that's pretty much what I've been looking for. Many thanks!

This topic is closed to new replies.

Advertisement