diff --git a/Engine/source/navigation/navMesh.cpp b/Engine/source/navigation/navMesh.cpp index 74d71dc77..22a47a9f3 100644 --- a/Engine/source/navigation/navMesh.cpp +++ b/Engine/source/navigation/navMesh.cpp @@ -123,28 +123,6 @@ DefineConsoleFunction(NavMeshUpdateAll, void, (S32 objid, bool remove), (0, fals obj->enableCollision(); } -DefineConsoleFunction(NavMeshUpdateAroundObject, void, (S32 objid, bool remove), (0, false), - "@brief Update all NavMesh tiles that intersect the given object's world box.") -{ - SceneObject *obj; - if (!Sim::findObject(objid, obj)) - return; - if (remove) - obj->disableCollision(); - SimSet *set = NavMesh::getServerSet(); - for (U32 i = 0; i < set->size(); i++) - { - NavMesh *m = dynamic_cast(set->at(i)); - if (m) - { - m->cancelBuild(); - m->buildTiles(obj->getWorldBox()); - } - } - if (remove) - obj->enableCollision(); -} - DefineConsoleFunction(NavMeshUpdateOne, void, (S32 meshid, S32 objid, bool remove), (0, 0, false), "@brief Update all tiles in a given NavMesh that intersect the given object's world box.") {