Skip to content

PhysicsAPI reference

Class CollisionLayers

Namespace: MicroEngine.Physics
Assembly: MicroEngine.Physics.dll
Guide: Physics worlds

The collision layers of the contract: 64 bits, any meaning the game gives them. A shape is in the layers of its Category and collides with the layers of its Mask; two shapes collide only when each one’s mask holds the other’s category.

C#
public static class CollisionLayers

Inheritance

object ← CollisionLayers

Fields

All

Every layer.

C#
public const ulong All = 18446744073709551615

Field Value

ulong

Default

The layer shapes and queries are in by default (bit 0).

C#
public const ulong Default = 1

Field Value

ulong