BodyType

View source

Selects the expected movement mode of a physics body.

Use these labels when application code distinguishes simulated, externally driven, and fixed bodies.

Examples

import { BodyType } from '@wimaengine/narrowphase'

const bodyType = BodyType.DYNAMIC
const isSimulated = bodyType === BodyType.DYNAMIC

Variants


DYNAMIC

View source

A body whose movement is determined by simulation.

KINEMATIC

View source

A body whose movement is supplied by application or animation code.