19 #ifndef NTRT_MUSCLE2P_H_
20 #define NTRT_MUSCLE2P_H_
30 #include "LinearMath/btScalar.h"
31 #include "LinearMath/btVector3.h"
48 double dampingCoefficient);
53 virtual btVector3 calculateAndApplyForce(
double dt);
55 void setName(std::string a) { name = a; }
57 const double getRestLength()
const;
59 void setRestLength(
const double newRestLength);
61 const btScalar getActualLength()
const;
63 const double getTension()
const;
65 const double getCoefK()
const
70 const double getVelocity()
const
75 const double getDamping()
const
80 const std::string& getName()
const {
105 const btScalar m_dampingCoefficient;
107 const btScalar m_coefK;
109 bool invariant(
void)
const;
121 btVector3 getWorldPosition();
124 btVector3 getRelativePosition();
126 btRigidBody * attachedBody;
129 btVector3 attachedRelativeOriginalPosition;
135 #endif // NTRT_MUSCLE2P_H_