Physics · function
partsBoundRadius
The largest distance from a body's own origin to any point of any part.
Explained in Your first game, Rigid bodies.
function partsBoundRadius(parts: readonly ConvexShape[]): numberimport { partsBoundRadius } from '@driftengine/physics';Parameters
| Parameter | Type | Description |
|---|---|---|
parts | readonly ConvexShape[] |
In depth
What boundsOf needs, and it is a maximum rather than a sum because every part is already in the
body's frame: a part built off to one side carries that offset inside its own boundRadius.