Physics · function
boxShape
The exact shape MeshBuilder.addBox draws: eight corners, three axes.
Explained in Your first game, Rigid bodies.
function boxShape(hx: number, hy: number, hz: number): ConvexShapeimport { boxShape } from '@driftengine/physics';Parameters
| Parameter | Type | Description |
|---|---|---|
hx | number | |
hy | number | |
hz | number |