Singleton facade for the Pulsar physics runtime.
More...
#include <Pulsar.h>
Singleton facade for the Pulsar physics runtime.
Manages the lifetime of the Jolt allocator and job system, which are shared across all PhysicsWorld instances within the process. Call Init once at engine startup and Shutdown on teardown.
◆ GetAllocator()
| JPH::TempAllocatorImpl * Raven::Pulsar::GetAllocator |
( |
| ) |
|
|
inlinestatic |
Returns the global Jolt temporary allocator.
- Returns
- Non-owning pointer to the
TempAllocatorImpl instance.
◆ GetConfig()
Returns a mutable reference to the active physics configuration.
- Returns
- Reference to the stored PhysicsConfiguration.
◆ GetJobSystem()
| JPH::JobSystemThreadPool * Raven::Pulsar::GetJobSystem |
( |
| ) |
|
|
inlinestatic |
Returns the global Jolt job system.
- Returns
- Non-owning pointer to the
JobSystemThreadPool instance.
◆ Init()
Initialises the global Jolt runtime with the given configuration.
- Parameters
-
| config | Physics configuration to apply. Stored internally and accessible via GetConfig for the lifetime of the runtime. |
◆ Shutdown()
| void Raven::Pulsar::Shutdown |
( |
| ) |
|
|
static |
Tears down the global Jolt runtime, freeing all internal resources.
Must be called after all PhysicsWorld instances have been shut down.
The documentation for this class was generated from the following files: