30 #include "BulletCollision/CollisionDispatch/btGhostObject.h"
31 #include "btBulletDynamicsCommon.h"
36 tgGhostModel::tgGhostModel(btPairCachingGhostObject* pCollisionObject,
39 m_pCollisionObject(pCollisionObject)
41 if (pCollisionObject == NULL)
43 throw std::invalid_argument(
"Pointer to ghostObject is NULL");
48 assert(m_pCollisionObject == pCollisionObject);
67 bool tgGhostModel::invariant()
const
virtual void onVisit(const tgModelVisitor &v) const
Like tgBaseRigid, but uses btPairCachingGhostObject instead.
btPairCachingGhostObject * m_pCollisionObject
virtual void render(const tgRod &rod) const
Contains the definition of interface class tgModelVisitor.