Global configuration for the Pulsar physics runtime. More...
#include <Pulsar.h>
Public Member Functions | |
| template<typename Visitor> | |
| void | Reflect (Visitor &&v) |
Public Attributes | |
| float | FixedTimeStep = 1.0f / 60.0f |
| Duration of a single physics sub-step (seconds). | |
| u32 | MaxSubSteps = 1 |
| Maximum number of sub-steps per PhysicsWorld::Step call. | |
| float | GravityX = 0.0f |
| World-space gravity, X component (m/s²). | |
| float | GravityY = -9.81f |
| World-space gravity, Y component (m/s²). | |
| float | GravityZ = 0.0f |
| World-space gravity, Z component (m/s²). | |
| u32 | MaxBodies = 65536 |
| Maximum number of bodies the physics system may allocate. | |
| u32 | NumBodyMutexes = 0 |
| Number of body mutexes (0 = Jolt default). | |
| u32 | MaxBodyPairs = 65536 |
| Maximum number of body pairs for the broad-phase cache. | |
| u32 | MaxContactConstraints = 10500 |
| Maximum number of contact constraints the solver may handle. | |
Global configuration for the Pulsar physics runtime.
Passed to Pulsar::Init on startup and queried by PhysicsWorld each simulation step. All fields are serialisable via the Reflect visitor.
|
inline |
| float Raven::PhysicsConfiguration::FixedTimeStep = 1.0f / 60.0f |
Duration of a single physics sub-step (seconds).
| float Raven::PhysicsConfiguration::GravityX = 0.0f |
World-space gravity, X component (m/s²).
| float Raven::PhysicsConfiguration::GravityY = -9.81f |
World-space gravity, Y component (m/s²).
| float Raven::PhysicsConfiguration::GravityZ = 0.0f |
World-space gravity, Z component (m/s²).
| u32 Raven::PhysicsConfiguration::MaxBodies = 65536 |
Maximum number of bodies the physics system may allocate.
| u32 Raven::PhysicsConfiguration::MaxBodyPairs = 65536 |
Maximum number of body pairs for the broad-phase cache.
| u32 Raven::PhysicsConfiguration::MaxContactConstraints = 10500 |
Maximum number of contact constraints the solver may handle.
| u32 Raven::PhysicsConfiguration::MaxSubSteps = 1 |
Maximum number of sub-steps per PhysicsWorld::Step call.
| u32 Raven::PhysicsConfiguration::NumBodyMutexes = 0 |
Number of body mutexes (0 = Jolt default).