godot-recast-navigation/src/RecastNavMesh.hpp

23 lines
481 B
C++
Raw Normal View History

2024-06-04 09:42:58 +00:00
#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; }
};
}