Physics collision layer.
More...
#include <physics/Layers.hpp>
|
const bool | isStatic |
| Whether objects are static.
|
|
const std::string | name |
| Layer name.
|
|
const JPH::ObjectLayer | id |
| Unique layer ID.
|
|
const JPH::BroadPhaseLayer | BroadPhaseLayer |
| Broad phase settings.
|
|
Physics collision layer.
Defines collision filtering and broad phase settings for physics objects. Controls which objects can collide with each other.
◆ Layer()
StevEngine::Physics::Layer::Layer |
( |
std::string | name, |
|
|
bool | isStatic = false ) |
Create new physics layer.
- Parameters
-
name | Layer identifier |
isStatic | Whether objects are static |
◆ GetLayerById()
Layer * StevEngine::Physics::Layer::GetLayerById |
( |
JPH::ObjectLayer | id | ) |
|
|
static |
Get layer by ID.
- Parameters
-
- Returns
- Layer pointer
◆ GetLayerByName()
Layer * StevEngine::Physics::Layer::GetLayerByName |
( |
std::string | name | ) |
|
|
static |
Get layer by name.
- Parameters
-
- Returns
- Layer pointer
The documentation for this class was generated from the following files: