Upgrade Bullet to version 2.83.
[blender.git] / extern / bullet2 / src / BulletDynamics / ConstraintSolver / btGeneric6DofSpringConstraint.h
index 1b2e0f62ca8cf3fdea8e9a60da360f99c970610f..dac59c6889de785f41a4aabfb187c75214a25090 100644 (file)
@@ -63,6 +63,26 @@ public:
        void setEquilibriumPoint(int index);  // set the current constraint position/orientation as an equilibrium point for given DOF
        void setEquilibriumPoint(int index, btScalar val);
 
+       bool isSpringEnabled(int index) const
+       {
+           return m_springEnabled[index];
+       }
+
+       btScalar getStiffness(int index) const
+       {
+           return m_springStiffness[index];
+       }
+
+       btScalar getDamping(int index) const
+       {
+           return m_springDamping[index];
+       }
+
+       btScalar getEquilibriumPoint(int index) const
+       {
+           return m_equilibriumPoint[index];
+       }
+
        virtual void setAxis( const btVector3& axis1, const btVector3& axis2);
 
        virtual void getInfo2 (btConstraintInfo2* info);