Blender  V3.3
Classes | Functions | Variables
btGhostObject.h File Reference
#include "btCollisionObject.h"
#include "BulletCollision/BroadphaseCollision/btOverlappingPairCallback.h"
#include "LinearMath/btAlignedAllocator.h"
#include "BulletCollision/BroadphaseCollision/btOverlappingPairCache.h"
#include "btCollisionWorld.h"

Go to the source code of this file.

Classes

class  btPairCachingGhostObject
 
class  btGhostPairCallback
 The btGhostPairCallback interfaces and forwards adding and removal of overlapping pairs from the btBroadphaseInterface to btGhostObject. More...
 

Functions

 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
 
virtual void addOverlappingObjectInternal (btBroadphaseProxy *otherProxy, btBroadphaseProxy *thisProxy=0)
 this method is mainly for expert/internal use only. More...
 
virtual void removeOverlappingObjectInternal (btBroadphaseProxy *otherProxy, btDispatcher *dispatcher, btBroadphaseProxy *thisProxy=0)
 this method is mainly for expert/internal use only. More...
 
int getNumOverlappingObjects () const
 
btCollisionObjectgetOverlappingObject (int index)
 
btAlignedObjectArray< btCollisionObject * > & getOverlappingPairs ()
 
static const btGhostObjectupcast (const btCollisionObject *colObj)
 
static btGhostObjectupcast (btCollisionObject *colObj)
 

Variables

btGhostObject __pad0__
 

Function Documentation

◆ addOverlappingObjectInternal()

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

this method is mainly for expert/internal use only.

◆ btGhostObject()

btGhostObject::btGhostObject ( )

◆ convexSweepTest()

void convexSweepTest ( const class btConvexShape castShape,
const btTransform convexFromWorld,
const btTransform convexToWorld,
btCollisionWorld::ConvexResultCallback resultCallback,
btScalar  allowedCcdPenetration = 0.f 
) const

◆ getNumOverlappingObjects()

int getNumOverlappingObjects ( ) const

Definition at line 53 of file btGhostObject.h.

References btAlignedObjectArray< T >::size().

◆ getOverlappingObject()

const btCollisionObject * getOverlappingObject ( int  index)

Definition at line 58 of file btGhostObject.h.

◆ getOverlappingPairs()

const btAlignedObjectArray< btCollisionObject * > getOverlappingPairs ( )

Definition at line 68 of file btGhostObject.h.

◆ rayTest()

void rayTest ( const btVector3 rayFromWorld,
const btVector3 rayToWorld,
btCollisionWorld::RayResultCallback resultCallback 
) const

◆ removeOverlappingObjectInternal()

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

this method is mainly for expert/internal use only.

◆ upcast() [1/2]

static btGhostObject* upcast ( btCollisionObject colObj)
static

Definition at line 88 of file btGhostObject.h.

References btGhostObject(), and CO_GHOST_OBJECT.

◆ upcast() [2/2]

static const btGhostObject* upcast ( const btCollisionObject colObj)
static

◆ ~btGhostObject()

btGhostObject::~btGhostObject ( )
virtual

btGhostObject should have been removed from the world, so no overlapping objects

Definition at line 26 of file btGhostObject.cpp.

References btAssert.

Variable Documentation

◆ __pad0__

btGhostObject __pad0__

The btGhostObject can keep track of all objects that are overlapping By default, this overlap is based on the AABB This is useful for creating a character controller, collision sensors/triggers, explosions etc. We plan on adding rayTest and other queries for the btGhostObject

Definition at line 34 of file btGhostObject.h.