|
NoJobEngine 2.0.7
|
#include <NavAgent.h>
Public Member Functions | |
| bool | SetDestination (const NavigationSystem &navigationSystem, const glm::vec3 ¤tPosition, const glm::vec3 &destination) |
| bool | RecalculatePath (const NavigationSystem &navigationSystem, const glm::vec3 ¤tPosition) |
| glm::vec3 | Update (const glm::vec3 ¤tPosition, float deltaTime) |
| void | Stop () |
| bool | HasPath () const |
| bool | HasReachedDestination () const |
| const glm::vec3 & | GetDestination () const |
| const NavPointPath & | GetPath () const |
| std::size_t | GetCurrentWaypointIndex () const |
| float & | Speed () |
| float | Speed () const |
| float & | StoppingDistance () |
| float | StoppingDistance () const |
Definition at line 18 of file NavAgent.h.
|
inline |
Definition at line 58 of file NavAgent.h.
|
inline |
Definition at line 48 of file NavAgent.h.
|
inline |
Definition at line 53 of file NavAgent.h.
|
inline |
Definition at line 36 of file NavAgent.h.
Referenced by RecalculatePath(), and Update().
|
inline |
Definition at line 43 of file NavAgent.h.
| bool NoJob::NavAgent::RecalculatePath | ( | const NavigationSystem & | navigationSystem, |
| const glm::vec3 & | currentPosition ) |
Definition at line 37 of file NavAgent.cpp.
References NoJob::NavigationSystem::CalculatePath(), HasPath(), and NoJob::NavPointPath::IsValid().
| bool NoJob::NavAgent::SetDestination | ( | const NavigationSystem & | navigationSystem, |
| const glm::vec3 & | currentPosition, | ||
| const glm::vec3 & | destination ) |
Definition at line 10 of file NavAgent.cpp.
References NoJob::NavigationSystem::CalculatePath(), NoJob::NavPointPath::IsValid(), and Stop().
|
inline |
Definition at line 63 of file NavAgent.h.
Referenced by NoJob::Scene::OnRuntimeStart().
|
inline |
Definition at line 68 of file NavAgent.h.
| void NoJob::NavAgent::Stop | ( | ) |
Definition at line 138 of file NavAgent.cpp.
Referenced by SetDestination().
|
inline |
Definition at line 73 of file NavAgent.h.
Referenced by NoJob::Scene::OnRuntimeStart().
|
inline |
Definition at line 78 of file NavAgent.h.
| glm::vec3 NoJob::NavAgent::Update | ( | const glm::vec3 & | currentPosition, |
| float | deltaTime ) |
Definition at line 60 of file NavAgent.cpp.
References HasPath().