Is it possible to do without removing it and re-adding it back into the world? I read somewhere that this was the safest way to do it but it seems a little expensive. Also is it safe to remove an object from the world then add it back in within the same frame?
for instance with the following code
Code: Select all
world->removeCollisionObject(object);
object->mask = NEW_COLLISION_MASK;
world->addCollisionObject(object, object->mask, object->group);
Wil McV