StevEngine
StevEngine is a customizable C++ game engine.
Loading...
Searching...
No Matches
StevEngine::Physics::LayerManager Class Reference

Physics collision layer manager. More...

#include <physics/Layers.hpp>

Public Types

enum  DefaultLayers { STATIC = (LayerID)0 , DEFAULT = (LayerID)1 }
 

Public Member Functions

LayerID CreateLayer (bool isStatic=true)
 Create a new physics layer.
 
const LayerGetLayer (LayerID id)
 Get layer by ID.
 

Detailed Description

Physics collision layer manager.

Defines set of layers and which collisions are allowed.

Member Function Documentation

◆ CreateLayer()

LayerID StevEngine::Physics::LayerManager::CreateLayer ( bool isStatic = true)

Create a new physics layer.

Parameters
isStaticWhether objects are static
Returns
Layer ID

◆ GetLayer()

const Layer & StevEngine::Physics::LayerManager::GetLayer ( LayerID id)

Get layer by ID.

Parameters
idLayer ID
Returns
Layer

The documentation for this class was generated from the following files: