PhysicsBodyComponent.CategoryBits Property
Definition¶
Namespace: Brine2D.ECS.Components
Raw category bitmask for this body's shapes. When non-zero, overrides the single-bit
mask derived from Brine2D.ECS.Components.PhysicsBodyComponent.Layer (i.e. 1UL << Layer), allowing a
body to belong to multiple collision categories simultaneously.
Example: CategoryBits = (1UL << 0) | (1UL << 3) makes this body
a member of both layer 0 and layer 3 for the purpose of collision filtering.
Set to 0 (default) to use the single-layer behaviour driven by Brine2D.ECS.Components.PhysicsBodyComponent.Layer.
public ulong CategoryBits { get; set; }