Bullet Collision Detection & Physics Library
Public Member Functions | Private Attributes | List of all members
btPairCachingGhostObject Class Reference

#include <btGhostObject.h>

Inheritance diagram for btPairCachingGhostObject:
Inheritance graph
[legend]
Collaboration diagram for btPairCachingGhostObject:
Collaboration graph
[legend]

Public Member Functions

 btPairCachingGhostObject ()
virtual ~btPairCachingGhostObject ()
virtual void addOverlappingObjectInternal (btBroadphaseProxy *otherProxy, btBroadphaseProxy *thisProxy=0)
 this method is mainly for expert/internal use only.
virtual void removeOverlappingObjectInternal (btBroadphaseProxy *otherProxy, btDispatcher *dispatcher, btBroadphaseProxy *thisProxy=0)
 this method is mainly for expert/internal use only.
btHashedOverlappingPairCachegetOverlappingPairCache ()
- Public Member Functions inherited from btGhostObject
 btGhostObject ()
virtual ~btGhostObject ()
void convexSweepTest (const class btConvexShape *castShape, const btTransform &convexFromWorld, const btTransform &convexToWorld, btCollisionWorld::ConvexResultCallback &resultCallback, btScalar allowedCcdPenetration=0.f) const
void rayTest (const btVector3 &rayFromWorld, const btVector3 &rayToWorld, btCollisionWorld::RayResultCallback &resultCallback) const
int getNumOverlappingObjects () const
btCollisionObjectgetOverlappingObject (int index)
const btCollisionObjectgetOverlappingObject (int index) const
btAlignedObjectArray
< btCollisionObject * > & 
getOverlappingPairs ()
const btAlignedObjectArray
< btCollisionObject * > 
getOverlappingPairs () const
- Public Member Functions inherited from btCollisionObject
 BT_DECLARE_ALIGNED_ALLOCATOR ()
bool mergesSimulationIslands () const
const btVector3getAnisotropicFriction () const
void setAnisotropicFriction (const btVector3 &anisotropicFriction, int frictionMode=CF_ANISOTROPIC_FRICTION)
bool hasAnisotropicFriction (int frictionMode=CF_ANISOTROPIC_FRICTION) const
void setContactProcessingThreshold (btScalar contactProcessingThreshold)
 the constraint solver can discard solving contacts, if the distance is above this threshold.
btScalar getContactProcessingThreshold () const
bool isStaticObject () const
bool isKinematicObject () const
bool isStaticOrKinematicObject () const
bool hasContactResponse () const
 btCollisionObject ()
virtual ~btCollisionObject ()
virtual void setCollisionShape (btCollisionShape *collisionShape)
const btCollisionShapegetCollisionShape () const
btCollisionShapegetCollisionShape ()
void * internalGetExtensionPointer () const
 Avoid using this internal API call, the extension pointer is used by some Bullet extensions.
void internalSetExtensionPointer (void *pointer)
 Avoid using this internal API call, the extension pointer is used by some Bullet extensions If you need to store your own user pointer, use 'setUserPointer/getUserPointer' instead.
int getActivationState () const
void setActivationState (int newState) const
void setDeactivationTime (btScalar time)
btScalar getDeactivationTime () const
void forceActivationState (int newState) const
void activate (bool forceActivation=false) const
bool isActive () const
void setRestitution (btScalar rest)
btScalar getRestitution () const
void setFriction (btScalar frict)
btScalar getFriction () const
void setRollingFriction (btScalar frict)
btScalar getRollingFriction () const
int getInternalType () const
 reserved for Bullet internal usage
btTransformgetWorldTransform ()
const btTransformgetWorldTransform () const
void setWorldTransform (const btTransform &worldTrans)
btBroadphaseProxygetBroadphaseHandle ()
const btBroadphaseProxygetBroadphaseHandle () const
void setBroadphaseHandle (btBroadphaseProxy *handle)
const btTransformgetInterpolationWorldTransform () const
btTransformgetInterpolationWorldTransform ()
void setInterpolationWorldTransform (const btTransform &trans)
void setInterpolationLinearVelocity (const btVector3 &linvel)
void setInterpolationAngularVelocity (const btVector3 &angvel)
const btVector3getInterpolationLinearVelocity () const
const btVector3getInterpolationAngularVelocity () const
int getIslandTag () const
void setIslandTag (int tag)
int getCompanionId () const
void setCompanionId (int id)
btScalar getHitFraction () const
void setHitFraction (btScalar hitFraction)
int getCollisionFlags () const
void setCollisionFlags (int flags)
btScalar getCcdSweptSphereRadius () const
 Swept sphere radius (0.0 by default), see btConvexConvexAlgorithm::
void setCcdSweptSphereRadius (btScalar radius)
 Swept sphere radius (0.0 by default), see btConvexConvexAlgorithm::
btScalar getCcdMotionThreshold () const
btScalar getCcdSquareMotionThreshold () const
void setCcdMotionThreshold (btScalar ccdMotionThreshold)
 Don't do continuous collision detection if the motion (in one step) is less then m_ccdMotionThreshold.
void * getUserPointer () const
 users can point to their objects, userPointer is not used by Bullet
int getUserIndex () const
void setUserPointer (void *userPointer)
 users can point to their objects, userPointer is not used by Bullet
void setUserIndex (int index)
 users can point to their objects, userPointer is not used by Bullet
int getUpdateRevisionInternal () const
bool checkCollideWith (const btCollisionObject *co) const
virtual int calculateSerializeBufferSize () const
virtual const char * serialize (void *dataBuffer, class btSerializer *serializer) const
 fills the dataBuffer and returns the struct name (and 0 on failure)
virtual void serializeSingleObject (class btSerializer *serializer) const

Private Attributes

btHashedOverlappingPairCachem_hashPairCache

Additional Inherited Members

- Public Types inherited from btCollisionObject
enum  CollisionFlags {
  CF_STATIC_OBJECT = 1,
  CF_KINEMATIC_OBJECT = 2,
  CF_NO_CONTACT_RESPONSE = 4,
  CF_CUSTOM_MATERIAL_CALLBACK = 8,
  CF_CHARACTER_OBJECT = 16,
  CF_DISABLE_VISUALIZE_OBJECT = 32,
  CF_DISABLE_SPU_COLLISION_PROCESSING = 64
}
enum  CollisionObjectTypes {
  CO_COLLISION_OBJECT = 1,
  CO_RIGID_BODY = 2,
  CO_GHOST_OBJECT = 4,
  CO_SOFT_BODY = 8,
  CO_HF_FLUID = 16,
  CO_USER_TYPE = 32,
  CO_FEATHERSTONE_LINK = 64
}
enum  AnisotropicFrictionFlags {
  CF_ANISOTROPIC_FRICTION_DISABLED = 0,
  CF_ANISOTROPIC_FRICTION = 1,
  CF_ANISOTROPIC_ROLLING_FRICTION = 2
}
- Static Public Member Functions inherited from btGhostObject
static const btGhostObjectupcast (const btCollisionObject *colObj)
static btGhostObjectupcast (btCollisionObject *colObj)
- Protected Member Functions inherited from btCollisionObject
virtual bool checkCollideWithOverride (const btCollisionObject *) const
- Protected Attributes inherited from btGhostObject
btAlignedObjectArray
< btCollisionObject * > 
m_overlappingObjects

Detailed Description

Definition at line 99 of file btGhostObject.h.

Constructor & Destructor Documentation

btPairCachingGhostObject::btPairCachingGhostObject ( )

Definition at line 59 of file btGhostObject.cpp.

btPairCachingGhostObject::~btPairCachingGhostObject ( )
virtual

Definition at line 64 of file btGhostObject.cpp.

Member Function Documentation

void btPairCachingGhostObject::addOverlappingObjectInternal ( btBroadphaseProxy otherProxy,
btBroadphaseProxy thisProxy = 0 
)
virtual

this method is mainly for expert/internal use only.

Reimplemented from btGhostObject.

Definition at line 70 of file btGhostObject.cpp.

btHashedOverlappingPairCache* btPairCachingGhostObject::getOverlappingPairCache ( )
inline

Definition at line 114 of file btGhostObject.h.

void btPairCachingGhostObject::removeOverlappingObjectInternal ( btBroadphaseProxy otherProxy,
btDispatcher dispatcher,
btBroadphaseProxy thisProxy = 0 
)
virtual

this method is mainly for expert/internal use only.

Reimplemented from btGhostObject.

Definition at line 85 of file btGhostObject.cpp.

Member Data Documentation

btHashedOverlappingPairCache* btPairCachingGhostObject::m_hashPairCache
private

Definition at line 101 of file btGhostObject.h.


The documentation for this class was generated from the following files: