Maps object layers to broad-phase layers.
More...
#include <BPLayerInterface.h>
Inherits JPH::BroadPhaseLayerInterface.
|
| | BPLayerInterface () |
| | Constructs the interface and populates the object → broad-phase mapping.
|
| JPH::uint | GetNumBroadPhaseLayers () const override |
| | Returns the total number of broad-phase layers.
|
| JPH::BroadPhaseLayer | GetBroadPhaseLayer (JPH::ObjectLayer inLayer) const override |
| | Translates an object layer to its corresponding broad-phase layer.
|
| const char * | GetBroadPhaseLayerName (JPH::BroadPhaseLayer inLayer) const override |
| | Returns a human-readable name for a broad-phase layer (debug / profiling).
|
Maps object layers to broad-phase layers.
Jolt queries this interface during broad-phase construction to place each body into the correct AABB tree partition.
◆ BPLayerInterface()
| Raven::Physics::BPLayerInterface::BPLayerInterface |
( |
| ) |
|
|
inline |
Constructs the interface and populates the object → broad-phase mapping.
◆ GetBroadPhaseLayer()
| JPH::BroadPhaseLayer Raven::Physics::BPLayerInterface::GetBroadPhaseLayer |
( |
JPH::ObjectLayer | inLayer | ) |
const |
|
inlineoverride |
Translates an object layer to its corresponding broad-phase layer.
- Parameters
-
| inLayer | Object layer index to translate. |
- Returns
- The matching
JPH::BroadPhaseLayer.
◆ GetBroadPhaseLayerName()
| const char * Raven::Physics::BPLayerInterface::GetBroadPhaseLayerName |
( |
JPH::BroadPhaseLayer | inLayer | ) |
const |
|
inlineoverride |
Returns a human-readable name for a broad-phase layer (debug / profiling).
- Parameters
-
| inLayer | The broad-phase layer to name. |
- Returns
- A null-terminated string literal, e.g.
"MOVING".
◆ GetNumBroadPhaseLayers()
| JPH::uint Raven::Physics::BPLayerInterface::GetNumBroadPhaseLayers |
( |
| ) |
const |
|
inlineoverride |
Returns the total number of broad-phase layers.
- Returns
- BroadPhaseLayers::NUM_LAYERS.
The documentation for this class was generated from the following file: