[solved]Shape with ogre procedural

dreamig

27-10-2013 09:29:06

Hi,
in created a cylinder like that
Procedural::CylinderGenerator().setRadius(30).setHeight(100).setPosition(-32,195,0).realizeMesh("target2");
Ogre::Entity* ent2 = mSceneMgr->createEntity("target2");
Targetnode2 = mSceneMgr->getRootSceneNode()->createChildSceneNode("target2");

Targetnode2->showBoundingBox(true);

BUT i did not see it

mikachu

27-10-2013 09:46:54

You forgot to attach entity to scenenode :wink:
TargetNode2->attachObject(ent2);

dreamig

27-10-2013 13:45:02

yes , i am stupid somtimes
Thanks