Skip to content

RaycastHit.Distance Property

Definition

Namespace: Brine2D.Physics

Distance from the ray origin to the hit point in pixels (Fraction * maxDistance passed to the query).

public float Distance { get; init; }

Property Value

System.Single