Skip to content

@relu-interactives/spatial-ecs


@relu-interactives/spatial-ecs / index / arcGroundCrossing

Function: arcGroundCrossing() ​

ts
function arcGroundCrossing(points, groundY): Vector3 | null;

Defined in: xr/teleportArc.ts:66

Where a sampled arc first crosses groundY going downward, or null.

Used as a cheap pre-check before raycasting: if the curve never descends to the floor plane there is nothing to hit, so we can skip the per-segment intersection work entirely.

Parameters ​

ParameterType
pointsVector3[]
groundYnumber

Returns ​

Vector3 | null