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): numberimport { faceCount } from '@driftengine/physics';Parameters
| Parameter | Type | Description |
|---|---|---|
shape | ConvexShape |