Class CollisionGroupExtensions
Provides extension methods for the CollisionGroup enum.
Inherited Members
Namespace: Genesis.Physics
Assembly: Genesis.dll
Syntax
public static class CollisionGroupExtensions
Methods
GetCollisionMask(CollisionGroup)
Gets the collision mask for the specified collision group, defining which other groups it collides with.
Declaration
public static int GetCollisionMask(this CollisionGroup group)
Parameters
Type | Name | Description |
---|---|---|
CollisionGroup | group | The collision group. |
Returns
Type | Description |
---|---|
int | The collision mask for the collision group. |
GetGroup(CollisionGroup)
Gets the integer value associated with a collision group.
Declaration
public static int GetGroup(this CollisionGroup group)
Parameters
Type | Name | Description |
---|---|---|
CollisionGroup | group | The collision group. |
Returns
Type | Description |
---|---|
int | The integer value of the collision group. |