File tree Expand file tree Collapse file tree
PhysicalEngine/Scene/Components/PhysicalComponent Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -25,10 +25,10 @@ Particle::Particle(const Particle& particle) : Component(particle.m_gameObject)
2525}
2626
2727Particle::~Particle () {
28- for (auto & force : forceGeneratorsList)
29- {
30- delete force;
31- }
28+ // for (auto& force : forceGeneratorsList)
29+ // {
30+ // delete force;
31+ // }
3232}
3333
3434void Particle::update (float deltaTime) {
Original file line number Diff line number Diff line change 55#include < imgui/imgui.h>
66
77PhysicalComponent::~PhysicalComponent () {
8- // for (auto& forceGenerator : forceGeneratorsList)
9- // {
10- // delete forceGenerator;
11- // }
8+ for (auto & forceGenerator : forceGeneratorsList)
9+ {
10+ delete forceGenerator;
11+ }
1212}
1313
1414float PhysicalComponent::distance (const PhysicalComponent& p) {
Original file line number Diff line number Diff line change @@ -26,10 +26,10 @@ Rigidbody::Rigidbody(GameObject* gameObject) : Component(gameObject) {
2626}
2727
2828Rigidbody::~Rigidbody () {
29- for (ForceGenerator* forceGenerator : forceGeneratorsList)
30- {
31- delete forceGenerator;
32- }
29+ // for (ForceGenerator* forceGenerator : forceGeneratorsList)
30+ // {
31+ // delete forceGenerator;
32+ // }
3333 for (ForcePoint& forcePoint : pointForceGeneratorsList)
3434 {
3535 delete forcePoint.force ;
You can’t perform that action at this time.
0 commit comments