38 #include "btBulletDynamicsCommon.h"
135 virtual double getMass()
const;
156 const btVector3& destinationPoint)
const;
168 const btVector3& destinationPoint,
169 const double rotation)
const;
200 return ((
getFrom() - nodeVector).fuzzyZero() || (
getTo() - nodeVector).fuzzyZero());
243 os <<
"tgBoxInfo(" << box.
getFrom() <<
", " << box.
getTo() <<
")";
virtual btVector3 getConnectionPoint(const btVector3 &referencePoint, const btVector3 &destinationPoint) const
Definition of abstract class tgRigidInfo.
Create a box shape as an obstacle or add it to your tensegrity.
virtual double getMass() const
tgRigidInfo * createRigidInfo(const tgPair &pair)
virtual std::set< tgRigidInfo * > getLeafRigids()
virtual btTransform getTransform() const
std::ostream & operator<<(std::ostream &os, const tgBoxInfo &box)
virtual bool containsNode(const btVector3 &nodeVector) const
virtual void initRigidBody(tgWorld &world)
virtual btCollisionShape * getCollisionShape(tgWorld &world) const
const btVector3 & getFrom() const
Definition of class tgPairs.
const tgBox::Config & getConfig() const
virtual std::set< btVector3 > getContainedNodes() const
const btVector3 & getTo() const
virtual tgCompoundRigidInfo * getCompound()
static btTransform getTransform(const btVector3 &startOrientation, const btVector3 &start, const btVector3 &end)
virtual btVector3 getCenterOfMass() const
tgBoxInfo(const tgBox::Config &config)
virtual const tgCompoundRigidInfo * getCompound() const
Contains the definition of class tgUtil and overloaded operator<<() free functions.