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): ConvexShape
import { boxShape } from '@driftengine/physics';

Parameters

ParameterTypeDescription
hxnumber
hynumber
hznumber