Physics · function

faceCount

How many faces the shape has. Zero for a sphere or a capsule, which have none.

Explained in Your first game, Rigid bodies.

function faceCount(shape: ConvexShape): number
import { faceCount } from '@driftengine/physics';

Parameters

ParameterTypeDescription
shapeConvexShape