summaryrefslogtreecommitdiff
path: root/servers/physics_3d/joints/hinge_joint_3d_sw.cpp
diff options
context:
space:
mode:
authorqarmin <mikrutrafal@protonmail.com>2021-09-14 11:01:49 +0200
committerRafaƂ Mikrut <mikrutrafal@protonmail.com>2021-09-15 19:41:32 +0200
commit91257c39000517dd5644caf0e02a7bc6cd4574a9 (patch)
treebda41f7f6f95f48a9e8a4f1df794e48c767eded3 /servers/physics_3d/joints/hinge_joint_3d_sw.cpp
parent7b21b1bb608909b373237d19467c6236537b8062 (diff)
Initialize variables in servers/physics
Diffstat (limited to 'servers/physics_3d/joints/hinge_joint_3d_sw.cpp')
-rw-r--r--servers/physics_3d/joints/hinge_joint_3d_sw.cpp30
1 files changed, 0 insertions, 30 deletions
diff --git a/servers/physics_3d/joints/hinge_joint_3d_sw.cpp b/servers/physics_3d/joints/hinge_joint_3d_sw.cpp
index b928f18231..a45fcf7eb5 100644
--- a/servers/physics_3d/joints/hinge_joint_3d_sw.cpp
+++ b/servers/physics_3d/joints/hinge_joint_3d_sw.cpp
@@ -79,21 +79,6 @@ HingeJoint3DSW::HingeJoint3DSW(Body3DSW *rbA, Body3DSW *rbB, const Transform3D &
m_rbBFrame.basis[1][2] *= real_t(-1.);
m_rbBFrame.basis[2][2] *= real_t(-1.);
- //start with free
- m_lowerLimit = Math_PI;
- m_upperLimit = -Math_PI;
-
- m_useLimit = false;
- m_biasFactor = 0.3f;
- m_relaxationFactor = 1.0f;
- m_limitSoftness = 0.9f;
- m_solveLimit = false;
-
- tau = 0.3;
-
- m_angularOnly = false;
- m_enableAngularMotor = false;
-
A->add_constraint(this, 0);
B->add_constraint(this, 1);
}
@@ -135,21 +120,6 @@ HingeJoint3DSW::HingeJoint3DSW(Body3DSW *rbA, Body3DSW *rbB, const Vector3 &pivo
rbAxisB1.y, rbAxisB2.y, -axisInB.y,
rbAxisB1.z, rbAxisB2.z, -axisInB.z);
- //start with free
- m_lowerLimit = Math_PI;
- m_upperLimit = -Math_PI;
-
- m_useLimit = false;
- m_biasFactor = 0.3f;
- m_relaxationFactor = 1.0f;
- m_limitSoftness = 0.9f;
- m_solveLimit = false;
-
- tau = 0.3;
-
- m_angularOnly = false;
- m_enableAngularMotor = false;
-
A->add_constraint(this, 0);
B->add_constraint(this, 1);
}