SetName OGRE3DBody

Morrigan

26-01-2010 09:38:52

Hello,

A fast question but I don't find the solution.
Is it possible to "setName", the name of my entity contain in a OGRE3DBody ?

Thank :)

Illidanz

26-01-2010 13:40:08

Hello,

A fast question but I don't find the solution.
Is it possible to "setName", the name of my entity contain in a OGRE3DBody ?

Thank :)

If you mean renaming the Ogre::Entity, I don't think this is actually possible without deleting and recreating it.

Morrigan

27-01-2010 09:26:03

Yes I want renaming the Ogre::Entity because when I create the physical object with createBody, NxOgre assign a name which look like "unamed01-entity".
And I need get the name of the entity (picking) to identify this object with his name.

EDIT : It's ok now, I use the name of Actor, it's better. With ->getNxActor()->setName().