TrueSync: TrueSync.LayerCollisionMatrix Class Reference

TrueSync

TrueSync.LayerCollisionMatrix Class Reference

Manages the collision matrix of physics simulation. More...

Static Public Member Functions

static bool CollisionEnabled (int layerA, int layerB)
 Returns true if the given layers can collide. More...
 
static bool CollisionEnabled (GameObject goA, GameObject goB)
 Returns true if the given GameObjects can collide (based on its layers). More...
 

Detailed Description

Manages the collision matrix of physics simulation.

Definition at line 8 of file LayerCollisionMatrix.cs.

Member Function Documentation

static bool TrueSync.LayerCollisionMatrix.CollisionEnabled ( int  layerA,
int  layerB 
)
static

Returns true if the given layers can collide.

Parameters
layerALayer of the first object
layerBLayer of the second object

Definition at line 16 of file LayerCollisionMatrix.cs.

static bool TrueSync.LayerCollisionMatrix.CollisionEnabled ( GameObject  goA,
GameObject  goB 
)
static

Returns true if the given GameObjects can collide (based on its layers).

Parameters
goAFirst GameObject
goBSecond GameObject

Definition at line 31 of file LayerCollisionMatrix.cs.


The documentation for this class was generated from the following file:
Generated by   doxygen 1.8.11