Raven Engine v0.1
A modern 3D Game Engine
Loading...
Searching...
No Matches
Raven::Physics::BPLayerInterface Class Referencefinal

Maps object layers to broad-phase layers. More...

#include <BPLayerInterface.h>

Inherits JPH::BroadPhaseLayerInterface.

Public Member Functions

 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).

Detailed Description

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.

Constructor & Destructor Documentation

◆ BPLayerInterface()

Raven::Physics::BPLayerInterface::BPLayerInterface ( )
inline

Constructs the interface and populates the object → broad-phase mapping.

Member Function Documentation

◆ GetBroadPhaseLayer()

JPH::BroadPhaseLayer Raven::Physics::BPLayerInterface::GetBroadPhaseLayer ( JPH::ObjectLayer inLayer) const
inlineoverride

Translates an object layer to its corresponding broad-phase layer.

Parameters
inLayerObject 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
inLayerThe 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: