19 #ifndef SRC_CORE_TG_BULLET_COMPRESSION_SPRING_H_
20 #define SRC_CORE_TG_BULLET_COMPRESSION_SPRING_H_
31 #include "LinearMath/btVector3.h"
81 virtual void step(
double dt);
168 virtual const std::vector<const tgSpringCableAnchor*>
getAnchors()
const;
244 bool invariant(
void)
const;
247 #endif // SRC_CORE_TG_BULLET_SPRING_CABLE_H_
virtual const double getVelocity() const
virtual ~tgBulletCompressionSpring()
virtual const double getDampingForce() const
virtual void step(double dt)
virtual const double getSpringForce() const
tgBulletSpringCableAnchor *const anchor1
virtual const bool isFreeEndAttached() const
tgBulletCompressionSpring(const std::vector< tgBulletSpringCableAnchor * > &anchors, bool isFreeEndAttached, double coefK, double coefD, double restLength)
virtual const btVector3 getSpringEndpoint() const
tgBulletSpringCableAnchor *const anchor2
std::vector< tgBulletSpringCableAnchor * > m_anchors
virtual const double getCoefK() const
virtual const double getCurrentSpringLength() const
virtual const double getCoefD() const
virtual const std::vector< const tgSpringCableAnchor * > getAnchors() const
virtual void calculateAndApplyForce(double dt)
virtual const btVector3 getAnchorDirectionUnitVector() const
virtual const double getCurrentAnchorDistance() const
virtual const double getRestLength() const