Collision layers defined for the project.
More...
#include <CollisionLayers.h>
|
static void | Reflect (AZ::ReflectContext *context) |
|
|
static const AZ::u8 | MaxCollisionLayers = 64 |
|
Collision layers defined for the project.
◆ GetLayer()
CollisionLayer AzPhysics::CollisionLayers::GetLayer |
( |
const AZStd::string & |
name | ) |
const |
Get the requested layer.
- Parameters
-
name | The name of the layer to retrieve. |
- Returns
- The request layer if found, otherwise CollisionLayer::Defualt.
◆ GetName()
const AZStd::string& AzPhysics::CollisionLayers::GetName |
( |
CollisionLayer |
layer | ) |
const |
Get the name of the requested layer.
- Returns
- Returns the name of the requested layer
◆ GetNames()
const AZStd::array<AZStd::string, MaxCollisionLayers>& AzPhysics::CollisionLayers::GetNames |
( |
| ) |
const |
Get the names of all the layers.
- Returns
- Returns an array of all the layers names.
◆ SetName() [1/2]
void AzPhysics::CollisionLayers::SetName |
( |
AZ::u64 |
layerIndex, |
|
|
const AZStd::string & |
layerName |
|
) |
| |
Set the name of the requested layer by index. Will verify layerIndex is within bounds.
- Parameters
-
layerIndex | The requested layer index. |
layerName | The name of the layer. |
◆ SetName() [2/2]
void AzPhysics::CollisionLayers::SetName |
( |
CollisionLayer |
layer, |
|
|
const AZStd::string & |
layerName |
|
) |
| |
Set the name of the requested layer.
- Parameters
-
layer | The requested layer to modify. |
layerName | The name of the layer. |
◆ TryGetLayer()
bool AzPhysics::CollisionLayers::TryGetLayer |
( |
const AZStd::string & |
name, |
|
|
CollisionLayer & |
layer |
|
) |
| const |
Get the requested layer.
- Parameters
-
name | The name of the layer to retrieve. |
layer | [OUT] The request layer if found, otherwise layer is left untouched. |
- Returns
- Returns true if the layer was found, otherwise false.
The documentation for this class was generated from the following file:
- Code/Framework/AzFramework/AzFramework/Physics/Collision/CollisionLayers.h