RavEngine
Loading...
Searching...
No Matches
RavEngine::NavMeshComponent Class Reference
Inheritance diagram for RavEngine::NavMeshComponent:
[legend]
Collaboration diagram for RavEngine::NavMeshComponent:
[legend]

Classes

struct  Options
 

Public Member Functions

 NavMeshComponent (Ref< MeshAsset > mesh, Options opt)
 
void UpdateNavMesh (Ref< MeshAsset > mesh, Options opt)
 
RavEngine::Vector< vector3 > CalculatePath (const vector3 &start, const vector3 &end, uint16_t maxPoints=std::numeric_limits< uint16_t >::max())
 
void DebugDraw (class RavEngine::DebugDrawer &dbg, const struct RavEngine::Transform &tr) const override
 
- Public Member Functions inherited from RavEngine::IDebugRenderable
virtual void DebugDraw (RavEngine::DebugDrawer &dbg, const Transform &transform) const =0
 

Additional Inherited Members

- Public Types inherited from RavEngine::Queryable< NavMeshComponent, IDebugRenderable >
typedef std::array< ctti_t, ntypes > arraytype
 
- Static Public Member Functions inherited from RavEngine::Queryable< NavMeshComponent, IDebugRenderable >
static constexpr const arraytype & GetQueryTypes ()
 
- Public Attributes inherited from RavEngine::IDebugRenderable
bool debugEnabled = false
 
color_t debug_color = 0xFFFFFFFF
 
- Public Attributes inherited from RavEngine::Queryable< NavMeshComponent, IDebugRenderable >
constexpr q_qt_def
 
- Static Public Attributes inherited from RavEngine::Queryable< NavMeshComponent, IDebugRenderable >
static constexpr std::size_t ntypes
 

Constructor & Destructor Documentation

◆ NavMeshComponent()

NavMeshComponent::NavMeshComponent ( Ref< MeshAsset >  mesh,
Options  opt 
)

Construct a mesh asset

Member Function Documentation

◆ CalculatePath()

RavEngine::Vector< vector3 > NavMeshComponent::CalculatePath ( const vector3 &  start,
const vector3 &  end,
uint16_t  maxPoints = std::numeric_limits<uint16_t>::max() 
)

Calculate a route between two points

Parameters
startthe start location of the path, in local coordinates to the owning entity
endthe end location of the path, in local coordinates to the owning entity
Returns
list of coordinates composing the path

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