closestAxisValue
@zylem/game-lib / debug / closestAxisValue
Function: closestAxisValue()
closestAxisValue(
ray,origin,axis):number|null
Defined in: packages/game-lib/src/lib/debug/transform-gizmo.ts:134
Closest point along an infinite line to a ray, as a distance along the line.
Returns null when the ray is close enough to parallel with the line that the
closest point becomes unstable; see MAX_DRAG_GAIN.
Parameters
ray
origin
Vector3
axis
Vector3
Returns
number | null