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): ConvexShape
import { sphereShape } from '@driftengine/physics';

Parameters

ParameterTypeDescription
radiusnumber