PhysicsBodyComponent.IsOneWayPlatform Property
Definition¶
Namespace: Brine2D.ECS.Components
When true, this body acts as a one-way platform: bodies approaching from the
non-solid side (opposite to PlatformNormalDirection) pass through,
while bodies approaching from the solid side collide normally.
public bool IsOneWayPlatform { get; set; }
Property Value¶
Remarks¶
The physics system installs a Box2D pre-solve callback when any body in the scene has this flag set, and removes it automatically when none do.