API reference

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

T

typeAnyShape

@codexo/exojs-physics / physics / stable

Discriminated union of the concrete shape kinds. Narrow via the literal `shape.type` discriminant (`'circle'` → CircleShape, `'capsule'` → CapsuleShape, `'polygon'` → PolygonShape) - no `as` casts needed. BoxShape is a PolygonShape subclass and carries `type: 'polygon'`.

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

Discriminated union of the concrete shape kinds. Narrow via the literal `shape.type` discriminant (`'circle'` → CircleShape, `'capsule'` → CapsuleShape, `'polygon'` → PolygonShape) - no `as` casts needed. BoxShape is a PolygonShape subclass and carries `type: 'polygon'`.

Definition1
Source