Entity to multiple nodes

A place for users of OGRE to discuss ideas and experiences of utilitising OGRE in their games / demos / applications.
Post Reply
User avatar
mageonline
Gnoblar
Posts: 10
Joined: Tue Aug 11, 2015 7:22 am
Location: Finland
Contact:

Entity to multiple nodes

Post by mageonline » Fri Sep 11, 2015 2:14 pm

Is it possible to attach the same entity to multiple scene nodes?
0 x

User avatar
dark_sylinc
OGRE Team Member
OGRE Team Member
Posts: 4075
Joined: Sat Jul 21, 2007 4:55 pm
Location: Buenos Aires, Argentina
x 230
Contact:

Re: Entity to multiple nodes

Post by dark_sylinc » Fri Sep 11, 2015 3:33 pm

No. It's not possible. Multiple entities to the same node, but not viceversa.
0 x

xrgo
OGRE Expert User
OGRE Expert User
Posts: 1045
Joined: Sat Jul 06, 2013 10:59 pm
Location: Chile
x 74

Re: Entity to multiple nodes

Post by xrgo » Fri Sep 11, 2015 4:18 pm

But you can clone it
0 x

User avatar
mageonline
Gnoblar
Posts: 10
Joined: Tue Aug 11, 2015 7:22 am
Location: Finland
Contact:

Re: Entity to multiple nodes

Post by mageonline » Mon Sep 14, 2015 7:58 am

Thanks. Does cloning produce a random name to the entity?

I have had issues destroying entities when the player changes zone. Sometimes they do not get destroyed, probably due to some reference i forgot to clear and the name collision results in exception.

Is it safe to change mesh and texture on an entity? In that case i could just reuse them without deleting.
0 x

Post Reply