worked on grid-walking
worked on grid-generation added helper library for nav-meshes started working on nav meshes
This commit is contained in:
43
navMesh/walk/NavMeshWalkSimple.h
Normal file
43
navMesh/walk/NavMeshWalkSimple.h
Normal file
@@ -0,0 +1,43 @@
|
||||
#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
|
||||
Reference in New Issue
Block a user