API reference
Every public class, method, and event in @codexo/exojs. Generated from source.
classBoxShape
@codexo/exojs-physics / physics / stable
Axis-aligned box of `width × height` centred on the collider's local origin — a convenience over PolygonShape. The result is a regular polygon, so it participates in the polygon narrow phase like any other convex shape.
11
props
0
methods
0
events
Import
import { BoxShape } from '@codexo/exojs-physics' Axis-aligned box of `width × height` centred on the collider's local origin — a convenience over PolygonShape. The result is a regular polygon, so it participates in the polygon narrow phase like any other convex shape.
Constructors 1
new(width: number, height: number): BoxShape Properties 11
area: number boundingRadius: number centroidX: number centroidY: number count: number height: number normals: readonly number[] type: "polygon" unitInertia: number vertices: readonly number[] width: number Source