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.
| 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.
| const AZStd::string& AzPhysics::CollisionLayers::GetName |
( |
CollisionLayer |
layer | ) |
const |
Get the name of the requested layer.
- Returns
- Returns the name of the requested layer
| 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.
| 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. |
| 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. |
| 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