CollisionFilteringRequests configures filtering settings per entity.
More...
#include <CollisionBus.h>
Inherits AZ::ComponentBus.
|
static void | Reflect (AZ::ReflectContext *context) |
|
CollisionFilteringRequests configures filtering settings per entity.
◆ GetCollisionGroupName()
virtual AZStd::string Physics::CollisionFilteringRequests::GetCollisionGroupName |
( |
| ) |
|
|
pure virtual |
Gets the collision group name for a collider on an entity. If the collision group can't be found, an empty string is returned. Note: Multiple colliders on an entity are currently not supported.
◆ GetCollisionLayerName()
virtual AZStd::string Physics::CollisionFilteringRequests::GetCollisionLayerName |
( |
| ) |
|
|
pure virtual |
Gets the collision layer name for a collider on an entity If the collision layer can't be found, an empty string is returned. Note: Multiple colliders on an entity are currently not supported.
◆ SetCollisionGroup()
virtual void Physics::CollisionFilteringRequests::SetCollisionGroup |
( |
const AZStd::string & |
groupName, |
|
|
AZ::Crc32 |
colliderTag |
|
) |
| |
|
pure virtual |
Sets the collision group on an entity. groupName should match a group defined in the PhysX configuration window. Colliders with a matching colliderTag will be updated. Specify the empty tag to update all colliders.
◆ SetCollisionLayer()
virtual void Physics::CollisionFilteringRequests::SetCollisionLayer |
( |
const AZStd::string & |
layerName, |
|
|
AZ::Crc32 |
colliderTag |
|
) |
| |
|
pure virtual |
Sets the collision layer on an entity. layerName should match a layer defined in the PhysX cConfiguration window. Colliders with a matching colliderTag will be updated. Specify the empty tag to update all colliders.
◆ ToggleCollisionLayer()
virtual void Physics::CollisionFilteringRequests::ToggleCollisionLayer |
( |
const AZStd::string & |
layerName, |
|
|
AZ::Crc32 |
colliderTag, |
|
|
bool |
enabled |
|
) |
| |
|
pure virtual |
Toggles a single collision layer on or off on an entity. layerName should match a layer defined in the PhysX configuration window. Colliders with a matching colliderTag will be updated. Specify the empty tag to update all colliders.
The documentation for this class was generated from the following file:
- Code/Framework/AzFramework/AzFramework/Physics/CollisionBus.h