PhysicsSettings

View sourcePhysicsSettings: object

Provides shared mutable defaults for 2D physics configuration.

The exported object is shared by reference. Read it when constructing or updating physics values, or change it before those values are consumed. Changes are not copied into a separate configuration object automatically.

Examples

import { PhysicsSettings } from '@wimaengine/narrowphase'

PhysicsSettings.velocitySolverIterations = 12
PhysicsSettings.penetrationSlop = 0.05

Default: ...