API reference

Every public class, method, and event in @codexo/exojs. Generated from source.

I

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: number
Distance 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