diff options
author | RĂ©mi Verschelde <rverschelde@gmail.com> | 2017-08-27 22:46:40 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-08-27 22:46:40 +0200 |
commit | 9e0fbb49c12a4bb12c275194b0599fdfa0b1aabf (patch) | |
tree | 8804d0dd24cc126087462edfbbbf73ed61b56b0e /servers/physics_2d/joints_2d_sw.h | |
parent | 37da8155a4500a9386027b4d791a86186bc7ab4a (diff) | |
parent | 7ad14e7a3e6f87ddc450f7e34621eb5200808451 (diff) |
Merge pull request #10699 from akien-mga/burn-burn-burn
Dead code tells no tales
Diffstat (limited to 'servers/physics_2d/joints_2d_sw.h')
-rw-r--r-- | servers/physics_2d/joints_2d_sw.h | 41 |
1 files changed, 0 insertions, 41 deletions
diff --git a/servers/physics_2d/joints_2d_sw.h b/servers/physics_2d/joints_2d_sw.h index 9b8bb16327..11cb41d9d1 100644 --- a/servers/physics_2d/joints_2d_sw.h +++ b/servers/physics_2d/joints_2d_sw.h @@ -56,46 +56,6 @@ public: max_force = max_bias = 3.40282e+38; }; }; -#if 0 - -class PinJoint2DSW : public Joint2DSW { - - union { - struct { - Body2DSW *A; - Body2DSW *B; - }; - - Body2DSW *_arr[2]; - }; - - Vector2 anchor_A; - Vector2 anchor_B; - real_t dist; - real_t jn_acc; - real_t jn_max; - real_t max_distance; - real_t mass_normal; - real_t bias; - - Vector2 rA,rB; - Vector2 n; //normal - bool correct; - - -public: - - virtual Physics2DServer::JointType get_type() const { return Physics2DServer::JOINT_PIN; } - - virtual bool setup(real_t p_step); - virtual void solve(real_t p_step); - - - PinJoint2DSW(const Vector2& p_pos,Body2DSW* p_body_a,Body2DSW* p_body_b=NULL); - ~PinJoint2DSW(); -}; - -#else class PinJoint2DSW : public Joint2DSW { @@ -129,7 +89,6 @@ public: ~PinJoint2DSW(); }; -#endif class GrooveJoint2DSW : public Joint2DSW { union { |