Function: passedThroughHoop()
function passedThroughHoop(
prevAlong: number,
currAlong: number,
planeAlong: number,
radial: number,
radius: number
): boolean;
Defined in: packages/webxr-interactions/src/math.ts:28
Did a tossed object pass through a hoop this frame? True when it crossed
the hoop plane in the scoring direction (downward - prev above, curr
at/below) while inside the ring (radial <= radius).
Parameters
| Parameter | Type |
|---|---|
prevAlong | number |
currAlong | number |
planeAlong | number |
radial | number |
radius | number |
Returns
boolean