|
@@ -205,15 +205,6 @@ PinJoint2DSW::PinJoint2DSW(const Vector2 &p_pos, Body2DSW *p_body_a, Body2DSW *p
|
|
|
}
|
|
|
}
|
|
|
|
|
|
-PinJoint2DSW::~PinJoint2DSW() {
|
|
|
- if (A) {
|
|
|
- A->remove_constraint(this, 0);
|
|
|
- }
|
|
|
- if (B) {
|
|
|
- B->remove_constraint(this, 1);
|
|
|
- }
|
|
|
-}
|
|
|
-
|
|
|
//////////////////////////////////////////////
|
|
|
//////////////////////////////////////////////
|
|
|
//////////////////////////////////////////////
|
|
@@ -346,11 +337,6 @@ GrooveJoint2DSW::GrooveJoint2DSW(const Vector2 &p_a_groove1, const Vector2 &p_a_
|
|
|
B->add_constraint(this, 1);
|
|
|
}
|
|
|
|
|
|
-GrooveJoint2DSW::~GrooveJoint2DSW() {
|
|
|
- A->remove_constraint(this, 0);
|
|
|
- B->remove_constraint(this, 1);
|
|
|
-}
|
|
|
-
|
|
|
//////////////////////////////////////////////
|
|
|
//////////////////////////////////////////////
|
|
|
//////////////////////////////////////////////
|
|
@@ -442,8 +428,3 @@ DampedSpringJoint2DSW::DampedSpringJoint2DSW(const Vector2 &p_anchor_a, const Ve
|
|
|
A->add_constraint(this, 0);
|
|
|
B->add_constraint(this, 1);
|
|
|
}
|
|
|
-
|
|
|
-DampedSpringJoint2DSW::~DampedSpringJoint2DSW() {
|
|
|
- A->remove_constraint(this, 0);
|
|
|
- B->remove_constraint(this, 1);
|
|
|
-}
|