19 #ifndef SRC_CORE_TG_BULLET_SPRING_CABLE_H_
20 #define SRC_CORE_TG_BULLET_SPRING_CABLE_H_
32 #include "LinearMath/btVector3.h"
61 double dampingCoefficient,
62 double pretension = 0.0);
73 virtual void step(
double dt);
94 virtual const std::vector<const tgSpringCableAnchor*>
getAnchors()
const;
125 virtual void calculateAndApplyForce(
double dt);
129 bool invariant(
void)
const;
132 #endif // SRC_CORE_TG_BULLET_SPRING_CABLE_H_
virtual const double getActualLength() const
virtual void step(double dt)
Definitions of class tgSpringCable.
tgBulletSpringCable(const std::vector< tgBulletSpringCableAnchor * > &anchors, double coefK, double dampingCoefficient, double pretension=0.0)
virtual ~tgBulletSpringCable()
virtual const std::vector< const tgSpringCableAnchor * > getAnchors() const
tgBulletSpringCableAnchor *const anchor2
virtual const double getTension() const
std::vector< tgBulletSpringCableAnchor * > m_anchors
tgBulletSpringCableAnchor *const anchor1