NoJobEngine 2.0.7
Loading...
Searching...
No Matches
NoJob::NavAgent Class Reference

#include <NavAgent.h>

Public Member Functions

bool SetDestination (const NavigationSystem &navigationSystem, const glm::vec3 &currentPosition, const glm::vec3 &destination)
bool RecalculatePath (const NavigationSystem &navigationSystem, const glm::vec3 &currentPosition)
glm::vec3 Update (const glm::vec3 &currentPosition, 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

Detailed Description

Definition at line 18 of file NavAgent.h.

Member Function Documentation

◆ GetCurrentWaypointIndex()

std::size_t NoJob::NavAgent::GetCurrentWaypointIndex ( ) const
inline

Definition at line 58 of file NavAgent.h.

◆ GetDestination()

const glm::vec3 & NoJob::NavAgent::GetDestination ( ) const
inline

Definition at line 48 of file NavAgent.h.

◆ GetPath()

const NavPointPath & NoJob::NavAgent::GetPath ( ) const
inline

Definition at line 53 of file NavAgent.h.

◆ HasPath()

bool NoJob::NavAgent::HasPath ( ) const
inline

Definition at line 36 of file NavAgent.h.

Referenced by RecalculatePath(), and Update().

◆ HasReachedDestination()

bool NoJob::NavAgent::HasReachedDestination ( ) const
inline

Definition at line 43 of file NavAgent.h.

◆ RecalculatePath()

bool NoJob::NavAgent::RecalculatePath ( const NavigationSystem & navigationSystem,
const glm::vec3 & currentPosition )

◆ SetDestination()

bool NoJob::NavAgent::SetDestination ( const NavigationSystem & navigationSystem,
const glm::vec3 & currentPosition,
const glm::vec3 & destination )

◆ Speed() [1/2]

float & NoJob::NavAgent::Speed ( )
inline

Definition at line 63 of file NavAgent.h.

Referenced by NoJob::Scene::OnRuntimeStart().

◆ Speed() [2/2]

float NoJob::NavAgent::Speed ( ) const
inline

Definition at line 68 of file NavAgent.h.

◆ Stop()

void NoJob::NavAgent::Stop ( )

Definition at line 138 of file NavAgent.cpp.

Referenced by SetDestination().

◆ StoppingDistance() [1/2]

float & NoJob::NavAgent::StoppingDistance ( )
inline

Definition at line 73 of file NavAgent.h.

Referenced by NoJob::Scene::OnRuntimeStart().

◆ StoppingDistance() [2/2]

float NoJob::NavAgent::StoppingDistance ( ) const
inline

Definition at line 78 of file NavAgent.h.

◆ Update()

glm::vec3 NoJob::NavAgent::Update ( const glm::vec3 & currentPosition,
float deltaTime )

Definition at line 60 of file NavAgent.cpp.

References HasPath().


The documentation for this class was generated from the following files: