Skip to content

Commit

Permalink
Merge pull request #26 from erayzesen/bugfix/fix-get_particle_method_…
Browse files Browse the repository at this point in the history
…issues_of_spring_objects

Fix get_particle() Method Issues of QSpringObject
  • Loading branch information
erayzesen authored Jan 22, 2025
2 parents 9cb40c8 + 9b2f39b commit 5ef85e4
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/qspring_object.h
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,9 @@ class QSpringObject: public RefCounted{
//print_error ("Quark Physics Error: Invalid particle object type! | QSpringObject.create_with_current_distance() ");
return this;
}

pA=particle_object_a;
pB=particle_object_b;

set_particle_a(particle_object_a);
set_particle_b(particle_object_b);
Expand All @@ -83,6 +86,10 @@ class QSpringObject: public RefCounted{
//print_error ("Quark Physics Error: Invalid particle object type! | QSpringObject.create_with_current_distance() ");
return Ref<QSpringObject>(this);
}

pA=particle_object_a;
pB=particle_object_b;

set_particle_a(particle_object_a);
set_particle_b(particle_object_b);
set_length(length);
Expand Down

0 comments on commit 5ef85e4

Please sign in to comment.