API reference

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

C

classShape

@codexo/exojs-physics / physics / stable

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.

3
props
0
methods
0
events
Import
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.

Constructors1
new(): Shape
Properties3
boundingRadius: number
Radius of the smallest circle about the local origin enclosing the shape.
Source