22 lines
481 B
C++
22 lines
481 B
C++
#pragma once
|
|
|
|
#include <godot_cpp/classes/node3d.hpp>
|
|
|
|
namespace godot {
|
|
|
|
class RecastNavMesh : public Node3D {
|
|
GDCLASS(RecastNavMesh, Node3D)
|
|
private:
|
|
bool calculated = false;
|
|
protected:
|
|
static void _bind_methods();
|
|
public:
|
|
RecastNavMesh();
|
|
~RecastNavMesh();
|
|
void clear_vertices();
|
|
bool add_vertices(const PackedByteArray& vertices);
|
|
bool recalculate_navmesh();
|
|
bool is_calculated() { return calculated; }
|
|
};
|
|
|
|
}
|