Now taking into account navmesh volume position

This commit is contained in:
Antoine Pilote
2024-07-25 20:42:32 -04:00
parent a3d652c5e3
commit 32ede2eeae
3 changed files with 6 additions and 3 deletions

View File

@@ -368,7 +368,9 @@ public:
}
}
NavManager::Get().BuildNavMesh(RecastConfig(component));
auto recastConfig = RecastConfig(component);
recastConfig.Position = volumeTransformComponent.GetGlobalPosition();
NavManager::Get().BuildNavMesh(std::move(recastConfig));
}
}
}