Add navigation source geometry parser callbacks

Adds navigation source geometry parser callbacks so that externals can hook their own geometry into the navigation mesh baking process.
This commit is contained in:
smix8
2024-04-18 22:47:28 +02:00
parent 9bc49a66ba
commit 58593d1bb7
16 changed files with 257 additions and 1 deletions

View File

@ -182,6 +182,9 @@ public:
bool is_baking_navigation_mesh(Ref<NavigationMesh> p_navigation_mesh) const override { return false; }
#endif // _3D_DISABLED
RID source_geometry_parser_create() override { return RID(); }
void source_geometry_parser_set_callback(RID p_parser, const Callable &p_callback) override {}
Vector<Vector3> simplify_path(const Vector<Vector3> &p_path, real_t p_epsilon) override { return Vector<Vector3>(); }
void free(RID p_object) override {}