Skip to content

KinematicCharacterSystem.IsOneWayPassThrough(ShapeCastHit) Method

Definition

Namespace: Brine2D.Systems.Physics

Returns true when a shape cast hit lands on the passthrough (non-solid) face of a one-way platform. The hit normal points toward the caster; if it opposes the platform's solid-face normal the caster is approaching from below and should not be blocked.

private static bool IsOneWayPassThrough(Brine2D.Physics.ShapeCastHit hit);

Parameters

hit ShapeCastHit

Returns

System.Boolean