[NxOgre 0.9]How to control "bodies" ?

dekron

11-04-2008 16:53:48

Hey, i've install Nxogre 0.9, read a little bit the documentation ( quite poor, there isn't even a doxygen doc, it is shame ), and there is already something i don't understand.

With ogre, we can create a Scene node linked to an entity. This entity got a name, it is easy to act on it ( moving it, deleting it, everything ) by calling this entity by it's name ( mSceneMgr->getSceneNode("SceneNode1")->do_something() for example ).

How that works with each "body" i create with NxOgre ? It is written that a body = SceneNode+Actor. There is no entity ?? I should use getActor() ? Because i can't call any body from mSceneMgr ...

dekron

14-04-2008 11:37:15

no one can help me ? I rephrase my question :

A body is an actor + a scene node.
I can get the actor from the body with "getActor()".

How can i get the SceneNode of the body ?
Cause there isn't any "getSceneNode()" method of the body class, and if "getName() " gives me the name of the body, i'm also unable to getthe name of the linked SceneNode.

betajaen

14-04-2008 11:42:46

getNode() ?

dekron

14-04-2008 12:00:26

Ah thanks. This function is avaiable for a body class.
But can we take a body from a Scene ? Or only an actor ?

And do you have planned yet the documentation's writting ? Do you know when it will be avaiable ?

Thanks for this friendly tool.