diff --git a/src/GameBall/core/actors/common_ball_actor.cpp b/src/GameBall/core/actors/common_ball_actor.cpp index 06eac24..a8c95a1 100644 --- a/src/GameBall/core/actors/common_ball_actor.cpp +++ b/src/GameBall/core/actors/common_ball_actor.cpp @@ -12,11 +12,13 @@ CommonBallActor::CommonBallActor(GameBall *app) : Actor(app) { } CommonBallActor::~CommonBallActor() { + /* if (entity_) { entity_->SetAlbedoImage(nullptr); app_->Scene()->DestroyEntity(entity_.get()); entity_ = nullptr; } + */ } void CommonBallActor::Update(float delta_time) { diff --git a/src/GameX/physics/world.cpp b/src/GameX/physics/world.cpp index c67b694..6a68a67 100644 --- a/src/GameX/physics/world.cpp +++ b/src/GameX/physics/world.cpp @@ -27,10 +27,6 @@ uint64_t World::CreateSphere(float radius, float mass) { return id; } -void World::DeleteSphere(uint64_t id) { - spheres_.erase(id); -} - uint64_t World::CreateCube(float side_length, float mass) { uint64_t id = next_cube_id_++; cubes_.emplace(id, Cube(mass, side_length)); diff --git a/src/GameX/physics/world.h b/src/GameX/physics/world.h index c69703b..fe902b1 100644 --- a/src/GameX/physics/world.h +++ b/src/GameX/physics/world.h @@ -13,8 +13,6 @@ class World { uint64_t CreateSphere(float radius = 1.0f, float mass = 1.0f); - void DeleteSphere(uint64_t id); - uint64_t CreateCube(float side_length = 1.0f, float mass = 1.0f); Sphere &GetSphere(uint64_t id);