s0lidnuts
04-08-2008 02:42:10
Yeah I want to create Gizmos (like Maya, 3dsMax, etc..) and intend to create them in run time. I can create it with Ogre::ManualObject and attach it like this:
with circle being the manual object. But.. is there another way to do it ? Without those getSceneNodes.. a more elegant way =) ?
@also, not to create another thread: is it possible to get the body through the actor ? Something like actor->getBody();
Thanks.
body = m_PhysScene->createBody("Gizmo;", new NxOgre::Cube(10, 10, 100), Ogre::Vector3(50, 50, 50), "kinematic: yes");
node = m_SceneMgr->getSceneNode("Gizmo");
node->attachObject(circle);
with circle being the manual object. But.. is there another way to do it ? Without those getSceneNodes.. a more elegant way =) ?
@also, not to create another thread: is it possible to get the body through the actor ? Something like actor->getBody();
Thanks.