Physics · function
colliderFromShape
Wrap a world-space shape in the bounds the broad phase needs.
Explained in Your first game, Rigid bodies.
function colliderFromShape(shape: ConvexShape): Colliderimport { colliderFromShape } from '@driftengine/physics';Parameters
| Parameter | Type | Description |
|---|---|---|
shape | ConvexShape |