Add NavMeshRuntime to scripting api

This commit is contained in:
Wojtek Figat
2023-09-24 19:26:17 +02:00
parent 15b1e0a984
commit 65583ac6aa
2 changed files with 20 additions and 17 deletions

View File

@@ -26,7 +26,8 @@ namespace
}
NavMeshRuntime::NavMeshRuntime(const NavMeshProperties& properties)
: Properties(properties)
: ScriptingObject(SpawnParams(Guid::Empty, NavMeshRuntime::TypeInitializer))
, Properties(properties)
{
_navMesh = nullptr;
_navMeshQuery = dtAllocNavMeshQuery();