API reference
Every public class, method, and event in @codexo/exojs. Generated from source.
classShape
Immutable local-space collision geometry. A `Shape` carries no transform - a Collider positions it in a body. Having an interior is a capability, not a given: solid shapes expose massProperties, while boundary geometry (a segment, a chain of edges) reports `null` and contributes nothing to the owning body's mass. Read the property rather than assuming an area exists.
import { Shape } from '@codexo/exojs-physics'Immutable local-space collision geometry. A `Shape` carries no transform - a Collider positions it in a body.
Having an interior is a capability, not a given: solid shapes expose massProperties, while boundary geometry (a segment, a chain of edges) reports `null` and contributes nothing to the owning body's mass. Read the property rather than assuming an area exists.
new(): ShapeboundingRadius: number