]> git.localhorst.tv Git - blank.git/blobdiff - src/ai/Spawner.cpp
more fun with AI/steering
[blank.git] / src / ai / Spawner.cpp
index 6404e443999dc2cf54bbee6e6f9be739b2e0e079..fabc6dd6a4377999751098b4719a4b12eb2a2fe2 100644 (file)
@@ -127,7 +127,7 @@ void Spawner::Spawn(Entity &reference, const glm::ivec3 &chunk, const glm::vec3
        e.Bounds({ { -0.5f, -0.5f, -0.5f }, { 0.5f, 0.5f, 0.5f } });
        e.WorldCollidable(true);
        RandomModel().Instantiate(e.GetModel());
-       e.SetController(new AIController(random));
+       e.SetController(new AIController(world, random));
        e.Name("spawned");
        e.Ref();
        entities.emplace_back(&e);