the code i need help with is here:
Code: Select all
IMesh* roommesh = smgr->getMesh(roommesh_name.c_str())->getMesh(0);
ITriangleSelector* field1_selector = smgr->createOctTreeTriangleSelector( roommesh,roommesh_node,128);
roommesh_node->setTriangleSelector(field1_selector);
field1_selector->drop();
Ken