19 #ifndef SRC_CORE_TG_BULLET_SPRING_CABLE_ANCHOR_H_
20 #define SRC_CORE_TG_BULLET_SPRING_CABLE_ANCHOR_H_
34 #include "LinearMath/btScalar.h"
35 #include "LinearMath/btVector3.h"
42 class btPersistentManifold;
73 btVector3 cn = btVector3(0.0, 0.0, 0.0),
76 btPersistentManifold* m = NULL);
153 btVector3 attachedRelativeOriginalPosition;
160 btVector3 contactNormal;
167 btPersistentManifold* manifold;
171 #endif // SRC_CORE_TG_BULLET_SPRING_CABLE_ANCHOR_H_
virtual ~tgBulletSpringCableAnchor()
tgBulletSpringCableAnchor(btRigidBody *body, btVector3 pos, btVector3 cn=btVector3(0.0, 0.0, 0.0), bool perm=true, bool slide=false, btPersistentManifold *m=NULL)
btPersistentManifold * getManifold() const
virtual btVector3 getWorldPosition() const
btRigidBody *const attachedBody
bool updateManifold(btPersistentManifold *m)
std::pair< btScalar, btVector3 > getManifoldDistance(btPersistentManifold *m) const
Definitions of class tgSpringCableAnchor.
virtual btVector3 getContactNormal() const
virtual btVector3 getRelativePosition() const
virtual bool setWorldPosition(btVector3 &newPos)