API reference

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

I

interfaceColliderOptions

@codexo/exojs-physics / physics / stable

Construction options for a collider.

8
props
0
methods
0
events
Import
import { ColliderOptions } from '@codexo/exojs-physics'

Construction options for a collider.

Properties8
density?: number
Density (mass per px²) for the owning body's mass; ignored for static/kinematic. Default 1.
friction?: number
Coulomb friction coefficient (used by the solver once dynamics ship). Default 0.2.
isSensor?: boolean
When true, generates overlap events but no contact response. Default false.
Body-local offset of the shape origin. Default (0, 0).
restitution?: number
Restitution / bounciness in [0, 1] (used by the solver once dynamics ship). Default 0.
rotation?: number
Body-local rotation of the shape in radians (compound colliders). Default 0.
Source