Interface PhysicsManagerModuleOptions

interface PhysicsManagerModuleOptions {
    allowSleep?: boolean;
    broadphase?: Broadphase;
    frictionGravity?: Vec3;
    gravity?: Vec3;
    maxSubSteps?: number;
    quatNormalizeFast?: boolean;
    quatNormalizeSkip?: number;
    solver?: Solver;
}

Properties

allowSleep?: boolean

Makes bodies go to sleep when they've been inactive.

Default

false
broadphase?: Broadphase

The broadphase algorithm to use.

Default

NaiveBroadphase
frictionGravity?: Vec3

Gravity to use when approximating the friction max force (mumassgravity). If undefined, global gravity will be used.

gravity?: Vec3

The gravity of the world.

maxSubSteps?: number
quatNormalizeFast?: boolean

Set to true to use fast quaternion normalization. It is often enough accurate to use. If bodies tend to explode, set to false.

Default

false
quatNormalizeSkip?: number

How often to normalize quaternions. Set to 0 for every step, 1 for every second etc.. A larger value increases performance. If bodies tend to explode, set to a smaller value (zero to be sure nothing can go wrong).

Default

0
solver?: Solver

The solver algorithm to use.

Default

GSSolver