AGX Dynamics  2.37.2.0
agxCollide::ColliderTable Class Reference

#include <ColliderTable.h>

Static Public Member Functions

static ShapeCollider * getCollider (const Shape *a, const Shape *b)
 Get a shape collider for testing two shapes against each other. More...
 
static ShapeCollider * getCollider (unsigned typeA, unsigned typeB)
 
static void init ()
 Initialize the collider table. More...
 
static void setCollider (unsigned typeA, unsigned typeB, ShapeCollider *collider)
 Set a shape collider, normally handled by the PluginManager. More...
 
static void setCollider (Shape *a, Shape *b, ShapeCollider *collider)
 

Detailed Description

Definition at line 40 of file ColliderTable.h.

Member Function Documentation

◆ getCollider() [1/2]

ShapeCollider * agxCollide::ColliderTable::getCollider ( const Shape *  a,
const Shape *  b 
)
static

Get a shape collider for testing two shapes against each other.

Returns
The collider, or 0 if no collider is registered for the shape types.

Definition at line 76 of file ColliderTable.h.

References CalcPairId, and agxCollide::Shape::getType().

◆ getCollider() [2/2]

ShapeCollider * agxCollide::ColliderTable::getCollider ( unsigned  typeA,
unsigned  typeB 
)
static

Definition at line 81 of file ColliderTable.h.

References CalcPairId.

◆ init()

static void agxCollide::ColliderTable::init ( )
static

Initialize the collider table.

◆ setCollider() [1/2]

static void agxCollide::ColliderTable::setCollider ( unsigned  typeA,
unsigned  typeB,
ShapeCollider *  collider 
)
static

Set a shape collider, normally handled by the PluginManager.

◆ setCollider() [2/2]

static void agxCollide::ColliderTable::setCollider ( Shape *  a,
Shape *  b,
ShapeCollider *  collider 
)
static

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