19 #ifndef SRC_CORE_TG_BULLET_CONTACT_SPRING_CABLE_H_
20 #define SRC_CORE_TG_BULLET_CONTACT_SPRING_CABLE_H_
33 #include "LinearMath/btScalar.h"
34 #include "LinearMath/btVector3.h"
43 class btCollisionShape;
44 class btCompoundShape;
45 class btPairCachingGhostObject;
46 class btDynamicsWorld;
85 const std::vector<tgBulletSpringCableAnchor*>& anchors,
87 double dampingCoefficient,
88 double pretension = 0.0,
89 double thickness = 0.001,
90 double resolution = 0.1);
108 virtual void step(
double dt);
135 bool comparePoints(btVector3& pt2, btVector3& pt3)
const;
147 virtual void calculateAndApplyForce(
double dt);
155 void updateManifolds();
163 void updateAnchorList();
171 int updateAnchorPositions();
186 void updateCollisionObject();
192 void deleteCollisionShape(btCollisionShape* pShape);
199 void clearCompoundShape(btCompoundShape* pShape);
207 bool deleteAnchor(
int i);
219 int findNearestPastAnchor(btVector3& pos);
225 std::vector<tgBulletSpringCableAnchor*>::iterator m_anchorIt;
231 std::vector<tgBulletSpringCableAnchor*> m_newAnchors;
262 bool invariant()
const;
265 #endif // SRC_CORE_TG_BULLET_CONTACT_SPRING_CABLE_H_
Definitions of classes tgBulletSpringCable $Id$.