API reference
Every public class, method, and event in @codexo/exojs. Generated from source.
interfaceRayHit
@codexo/exojs-physics / physics / stable
A single ray-cast intersection.
5
props
0
methods
0
events
Import
import { RayHit } from '@codexo/exojs-physics'A single ray-cast intersection.
Properties5
distance: numberDistance from the origin along the (normalised) ray direction.
normal: { x: number; y: number }Surface normal at the hit (unit, pointing back toward the ray origin).
point: { x: number; y: number }World-space hit position.
Source