1
0
mirror of https://github.com/ncblakely/GiantsTools synced 2024-11-16 11:45:38 +01:00
GiantsTools/Sdk/Include/Navigation/Public/PathUtil.h

17 lines
467 B
C
Raw Permalink Normal View History

2021-01-24 00:40:09 +01:00
#pragma once
#include "AI/Public/Goal.h"
#include "Navigation/Public/NavMesh.h"
#include "Navigation/Public/Path.h"
const int DT_INVALID_POLY = 0;
namespace Nav
{
class PathUtil
{
public:
static std::shared_ptr<Nav::Path> GetPath(ECS::Entity* entity, Nav::NavMesh* navMesh, const P3D& startPos, const P3D& endPos, AI::MoveGoalParams* params = nullptr);
static void SetPath(ECS::Entity* entity, std::shared_ptr<Nav::Path> path);
};
}