struct

PhysicsConfig

Module
Physics
Header
#include "Physics/PhysicsWorld.h"
Namespace
Mowo

Properties

TypeNameDescription
uint32_tmaxBodiesDefault Physics::DefaultMaxBodies.
uint32_tnumBodyMutexes0 = auto Default 0.
uint32_tmaxBodyPairsDefault Physics::DefaultMaxBodyPairs.
uint32_tmaxContactConstraintsDefault Physics::DefaultMaxContactConstraints.
uint32_ttempAllocatorSizeDefault Physics::DefaultTempAllocatorSize.
intnumThreadsUpper bound on the workers Jolt splits a phase across (-1 = the whole engine pool). Caps the split only; no engine worker is spawned or parked. Default -1.
boolsingleThreadedJobsEscape hatch: run Jolt's jobs on the stepping thread instead of the engine worker pool. Off everywhere by default; flip it if a platform bring-up ever hits pool trouble mid-port. Default false.
booldeterministicReproducible mode (p.Deterministic): Jolt's jobs run on the stepping thread in a fixed order whatever numThreads says, and contact events are handed to gameplay sorted by body pair rather than in worker-completion order. Jolt's own guarantee — same binary, same CPU, same inputs, same results — is what this mode makes the ENGINE honour on top; without it the step is still Jolt-deterministic but the event order is not. Default false.
uint32_tvelocityStepsSolver iterations per step (p.VelocitySteps / p.PositionSteps). More steps settle stacks and tall piles harder at a linear cost; Jolt's own defaults. Default 10.
uint32_tpositionStepsDefault 2.
Vec3gravityDefault Vec3(0.0f, Physics::DefaultGravityY, 0.0f).
Generated from Physics/PhysicsWorld.h via physics.json · Nov 4, 2026Version 1.0.0