API reference
Every public class, method, and event in @codexo/exojs. Generated from source.
interfaceCollisionEvent
@codexo/exojs-physics / physics / stable
Immutable per-dispatch snapshot describing a solid (non-sensor) contact. Frozen: it is safe to read during the callback and to copy fields out, but it is never reused or mutated, so the classic "stored a pooled event" bug cannot occur. `normal` points from collider/body **A toward B**.
6
props
0
methods
0
events
Import
import { CollisionEvent } from '@codexo/exojs-physics'Immutable per-dispatch snapshot describing a solid (non-sensor) contact. Frozen: it is safe to read during the callback and to copy fields out, but it is never reused or mutated, so the classic "stored a pooled event" bug cannot occur. `normal` points from collider/body **A toward B**.
Properties6
normal: Readonly<{ x: number; y: number }>points: readonly ContactPointA single contact point on a CollisionEvent. World space.[]Source