Back to index

supertuxkart  0.5+dfsg1
Classes | Defines | Functions
btSimulationIslandManager.cpp File Reference
#include "LinearMath/btScalar.h"
#include "btSimulationIslandManager.h"
#include "BulletCollision/BroadphaseCollision/btDispatcher.h"
#include "BulletCollision/NarrowPhaseCollision/btPersistentManifold.h"
#include "BulletCollision/CollisionDispatch/btCollisionObject.h"
#include "BulletCollision/CollisionDispatch/btCollisionWorld.h"
#include "LinearMath/btQuickprof.h"

Go to the source code of this file.

Classes

class  btPersistentManifoldSortPredicate
 function object that routes calls to operator< More...

Defines

#define SPLIT_ISLANDS   1

Functions

int getIslandId (const btPersistentManifold *lhs)

Define Documentation

#define SPLIT_ISLANDS   1

Function Documentation

int getIslandId ( const btPersistentManifold *  lhs) [inline]

Definition at line 108 of file btSimulationIslandManager.cpp.

{
       int islandId;
       const btCollisionObject* rcolObj0 = static_cast<const btCollisionObject*>(lhs->getBody0());
       const btCollisionObject* rcolObj1 = static_cast<const btCollisionObject*>(lhs->getBody1());
       islandId= rcolObj0->getIslandTag()>=0?rcolObj0->getIslandTag():rcolObj1->getIslandTag();
       return islandId;

}

Here is the caller graph for this function: