Now only drawing navmesh if selected + properly serialized

This commit is contained in:
Antoine Pilote
2024-08-05 23:48:41 -04:00
parent 67b5a94613
commit ca1d17e058
8 changed files with 47 additions and 34 deletions

View File

@@ -367,11 +367,11 @@ public:
Nuake::NavManager::Get().PushMesh(mesh, transformComponent.GetGlobalTransform());
}
}
auto recastConfig = RecastConfig(component);
recastConfig.Position = volumeTransformComponent.GetGlobalPosition();
NavManager::Get().BuildNavMesh(std::move(recastConfig));
}
auto recastConfig = RecastConfig(component);
recastConfig.Position = volumeTransformComponent.GetGlobalPosition();
component.NavMeshData = NavManager::Get().BuildNavMesh(std::move(recastConfig));
}
}