Hi, I am new to Irrlicht.
I have a few SceneNodes which use all the same mesh.
Now I want to use only one TriangleSelector (to do picking) for these SceneNodes.
Is it possible to do this, or do I need a TriangleSelector for every SceneNode?
regards,
Stefan
Use TriangleSelector for more than one SceneNode?
You will need a triangle selector for every mesh and use a MetaTriangle Selector:
and then make the triangle selector and use:
Code: Select all
// create metaSelector
scene::IMetaTriangleSelector* metaSelector;
metaSelector = smgr->createMetaTriangleSelector();
Code: Select all
metaSelector->addTriangleSelector(mesh);