API reference
Every public class, method, and event in @codexo/exojs. Generated from source.
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?: numberDensity (mass per px²) for the owning body's mass; ignored for static/kinematic. Default 1.
Category/mask/group filter; partials merge over the defaults.
friction?: numberCoulomb friction coefficient (used by the solver once dynamics ship). Default 0.2.
isSensor?: booleanWhen true, generates overlap events but no contact response. Default false.
offset?: Readonly<PointLikeStructural type for any object with a 2D `x`/`y` position.>Body-local offset of the shape origin. Default (0, 0).
restitution?: numberRestitution / bounciness in [0, 1] (used by the solver once dynamics ship). Default 0.
rotation?: numberBody-local rotation of the shape in radians (compound colliders). Default 0.
Source