Physics · function

isStaticBody

Whether a body is one a query should treat as scenery.

Explained in Your first game, Rigid bodies.

function isStaticBody(bodies: BodySet, i: number): boolean
import { isStaticBody } from '@driftengine/physics';

Parameters

ParameterTypeDescription
bodiesBodySet
inumber