struct
PhysicsConfig
- Module
- Physics
- Header
#include "Physics/PhysicsWorld.h"- Namespace
Mowo
Properties
| Type | Name | Description |
|---|---|---|
uint32_t | maxBodies | Default Physics::DefaultMaxBodies. |
uint32_t | numBodyMutexes | 0 = auto Default 0. |
uint32_t | maxBodyPairs | Default Physics::DefaultMaxBodyPairs. |
uint32_t | maxContactConstraints | Default Physics::DefaultMaxContactConstraints. |
uint32_t | tempAllocatorSize | Default Physics::DefaultTempAllocatorSize. |
int | numThreads | Upper 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. |
bool | singleThreadedJobs | Escape 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. |
bool | deterministic | Reproducible 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_t | velocitySteps | Solver 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_t | positionSteps | Default 2. |
Vec3 | gravity | Default Vec3(0.0f, Physics::DefaultGravityY, 0.0f). |
Generated from Physics/PhysicsWorld.h via physics.json · Nov 4, 2026Version 1.0.0