Updating mesh collisions
Posted: Fri Mar 27, 2009 10:12 pm
Hello,
I'm editing a terrain mesh ingame (it's a hillPlane), and I'd like to know if there's a faster way than clearing it's triangle selector from the meta and recreate one everytime I raise a vertice...
I use this at each update :
And it's very very slow...
Thanks.
I'm editing a terrain mesh ingame (it's a hillPlane), and I'd like to know if there's a faster way than clearing it's triangle selector from the meta and recreate one everytime I raise a vertice...
I use this at each update :
Code: Select all
node->setPosition(node->getPosition());
getMeta()->removeTriangleSelector(selector);
selector->drop();
selector = makeCollisions();
getMeta()->addTriangleSelector(selector);
Thanks.