worked on grid-generation added helper library for nav-meshes started working on nav meshes
44 lines
515 B
C++
44 lines
515 B
C++
#ifndef NAVMESHWALKSIMPLE_H
|
|
#define NAVMESHWALKSIMPLE_H
|
|
|
|
#include "../NavMesh.h"
|
|
|
|
template <typename Tria> class NavMeshWalkSimpel {
|
|
|
|
private:
|
|
|
|
const NavMesh<Tria>& mesh;
|
|
|
|
public:
|
|
|
|
struct Location {
|
|
size_t idx;
|
|
Point3 pos;
|
|
};
|
|
|
|
struct Result {
|
|
Location loc;
|
|
};
|
|
|
|
struct Params {
|
|
Location loc;
|
|
float distance_m;
|
|
float heading_rad;
|
|
};
|
|
|
|
public:
|
|
|
|
/** ctor */
|
|
NavMeshWalkSimpel(const NavMesh<Tria>& mesh) : mesh(mesh) {
|
|
|
|
}
|
|
|
|
Result walk(const Params& params) {
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
#endif // NAVMESHWALKSIMPLE_H
|