43 #include "btBulletDynamicsCommon.h"
44 #include "BulletCollision/CollisionDispatch/btGhostObject.h"
45 #include "BulletDynamics/Dynamics/btDynamicsWorld.h"
92 btPairCachingGhostObject* ghostObject =
new btPairCachingGhostObject();
94 ghostObject->setCollisionShape (shape);
95 ghostObject->setWorldTransform(transform);
96 ghostObject->setCollisionFlags (btCollisionObject::CF_NO_CONTACT_RESPONSE);
99 m_dynamicsWorld.addCollisionObject(ghostObject,btBroadphaseProxy::CharacterFilter, btBroadphaseProxy::StaticFilter|btBroadphaseProxy::DefaultFilter);
117 std::cout <<
"creating box with tags " << getTags() << std::endl;
120 btPairCachingGhostObject* ghostObject = tgCast::cast<btCollisionObject, btPairCachingGhostObject> (
getCollisionObject());
Contains the definition of class tgTagSearch.
Like tgBaseRigid, but uses btPairCachingGhostObject instead.
virtual tgRigidInfo * getRigidInfoGroup()
static btDynamicsWorld & worldToDynamicsWorld(const tgWorld &world)
virtual btCollisionShape * getCollisionShape(tgWorld &world) const =0
Definition of class tgPair.
tgGhostInfo(const tgBox::Config &config)
Definition of class tgPairs.
const tgBox::Config & getConfig() const
Definition of class tgNodes.
Definition of class tgNode.
virtual void setCollisionObject(btCollisionObject *collisionObject)
Contains the definition of class tgWorld $Id$.
Contains the definition of class tgBulletUtil.
tgRigidInfo * createRigidInfo(const tgPair &pair)
virtual void initRigidBody(tgWorld &world)
virtual btTransform getTransform() const =0
virtual btCollisionObject * getCollisionObject()
Contains the definition of class tgUtil and overloaded operator<<() free functions.
Definition of abstract class tgGhostInfo.