#include <DetourNavigationComponent.h>
Inherits AZ::Component, and DetourNavigationRequestBus::Handler.
|
| AZ_COMPONENT (DetourNavigationComponent, "{B9A8F260-2772-4C94-8DE4-850C94A8F2AC}") |
|
| DetourNavigationComponent (AZ::EntityId navQueryEntityId, float nearestDistance) |
|
|
AZStd::vector< AZ::Vector3 > | FindPathBetweenEntities (AZ::EntityId fromEntity, AZ::EntityId toEntity) override |
|
AZStd::vector< AZ::Vector3 > | FindPathBetweenPositions (const AZ::Vector3 &fromWorldPosition, const AZ::Vector3 &toWorldPosition) override |
|
void | SetNavigationMeshEntity (AZ::EntityId navMeshEntity) override |
|
AZ::EntityId | GetNavigationMeshEntity () const override |
|
|
void | Activate () override |
|
void | Deactivate () override |
|
|
static void | Reflect (AZ::ReflectContext *context) |
|
Calculates paths over the associated navigation mesh. Provides APIs to find a path between two entities or two world positions.
◆ DetourNavigationComponent()
RecastNavigation::DetourNavigationComponent::DetourNavigationComponent |
( |
AZ::EntityId |
navQueryEntityId, |
|
|
float |
nearestDistance |
|
) |
| |
Constructor to be used by Editor variant to pass the configuration in.
- Parameters
-
navQueryEntityId | entity id of the entity with a navigation mesh component. |
nearestDistance | distance to use when finding nearest point on the navigation mesh when points provided to FindPath are outside of the navigation mesh. |
◆ Activate()
void RecastNavigation::DetourNavigationComponent::Activate |
( |
| ) |
|
|
override |
AZ::Component overrides ...
◆ FindPathBetweenEntities()
AZStd::vector<AZ::Vector3> RecastNavigation::DetourNavigationComponent::FindPathBetweenEntities |
( |
AZ::EntityId |
fromEntity, |
|
|
AZ::EntityId |
toEntity |
|
) |
| |
|
override |
DetourNavigationRequestBus overrides ...
The documentation for this class was generated from the following file:
- Gems/RecastNavigation/Code/Source/Components/DetourNavigationComponent.h