Physics · function
sphereShape
A ball: one point, all radius. It separates on other shapes' features.
Explained in Your first game, Rigid bodies.
function sphereShape(radius: number): ConvexShapeimport { sphereShape } from '@driftengine/physics';Parameters
| Parameter | Type | Description |
|---|---|---|
radius | number |