19 #ifndef TG_RIGID_INFO_H
20 #define TG_RIGID_INFO_H
36 #include "LinearMath/btVector3.h"
37 #include "LinearMath/btQuaternion.h"
48 class btCollisionObject;
50 class btCollisionShape;
92 tgRigidInfo(
const std::string& space_separated_tags) :
119 virtual std::vector<tgRigidInfo*> createRigidInfos(
const tgNodes& nodes,
const tgTagSearch& tagSearch);
121 virtual std::vector<tgRigidInfo*> createRigidInfos(
const tgPairs& pairs,
const tgTagSearch& tagSearch);
123 virtual void initRigidBody(
tgWorld& world);
224 virtual double getMass()
const = 0;
253 const btVector3& destinationPoint)
const = 0;
261 const btVector3& destinationPoint,
262 const double rotation)
const
305 virtual bool containsNode(
const btVector3& nodeVector)
const = 0;
std::ostream & operator<<(std::ostream &os, const tgRigidInfo &obj)
virtual tgRigidInfo * getRigidInfoGroup()
virtual bool containsNode(const btVector3 &nodeVector) const =0
virtual bool sharesNodesWith(const tgRigidInfo &other) const
virtual void setRigidBody(btRigidBody *rigidBody)
tgRigidInfo * m_rigidInfoGroup
virtual tgCompoundRigidInfo * getCompound()=0
virtual btCollisionShape * getCollisionShape(tgWorld &world) const =0
virtual std::set< tgRigidInfo * > getLeafRigids()=0
virtual void setRigidInfoGroup(tgRigidInfo *rigidInfoGroup)
Contains the definition of class tgModel.
virtual btRigidBody * getRigidBody()
virtual void setCollisionObject(btCollisionObject *collisionObject)
btCollisionObject * m_collisionObject
virtual btVector3 getCenterOfMass() const =0
virtual btVector3 getConnectionPoint(const btVector3 &referencePoint, const btVector3 &destinationPoint, const double rotation) const
Contains the definition of class tgTaggable.
virtual double getMass() const =0
virtual btTransform getTransform() const =0
virtual btCollisionObject * getCollisionObject()
virtual btVector3 getConnectionPoint(const btVector3 &referencePoint, const btVector3 &destinationPoint) const =0
virtual std::set< btVector3 > getContainedNodes() const =0
virtual const btCollisionObject * getCollisionObject() const
void setCollisionShape(btCollisionShape *p_btCollisionShape)
btCollisionShape * m_collisionShape