diff --git a/game/level.cc b/game/level.cc index 4de6fc8..69fab74 100644 --- a/game/level.cc +++ b/game/level.cc @@ -35,7 +35,6 @@ void Level::load() { //Expose the class Level and its functions to Lua luabridge::getGlobalNamespace(luaState) .beginClass("Level") - .addFunction("deleteObject", &Level::deleteObject) .addFunction("getObjectCount", &Level::getPhysicsObjectsVectorSize) .addFunction("moveObject", &Level::moveObject) .addFunction("resetPlayer", &Level::resetPlayer) @@ -206,17 +205,6 @@ void Level::moveObject(int objectIndex, float strength, float xPos, float yPos, physics.addPositionConstraint(objectIndex, strength, position); } -//should not be used since objects does not get synchronized and deletion is not implemented in pyhsics -void Level::deleteObject(int objectIndex){ - physicsObjects.erase(physicsObjects.begin() + objectIndex); - for(unsigned int i = 0; i* getObjects(); std::vector* getPhysicsObjects(); - void deleteObject(int objectIndex); void moveObject(int objectIndex, float strength, float xPos, float yPos, float zPos); void setStrength(float strength); void setSkydomeObject(Skydome object);