X-Git-Url: http://git.localhorst.tv/?a=blobdiff_plain;f=src%2Fai%2FSpawner.cpp;h=b0b9bcb5127575cc0b254105ec669ed80216d274;hb=551573ecb04969696f916aeb5485658e298a7f6b;hp=c73bcde9a9584c2cf2c9500d8fc427653d17be11;hpb=54deb92306a3de4fc1ee17fb7081a8b92f16ddda;p=blank.git diff --git a/src/ai/Spawner.cpp b/src/ai/Spawner.cpp index c73bcde..b0b9bcb 100644 --- a/src/ai/Spawner.cpp +++ b/src/ai/Spawner.cpp @@ -105,13 +105,13 @@ void Spawner::Spawn(const glm::ivec3 &chunk, const glm::vec3 &pos) { e.Position(chunk, pos); e.Bounds({ { -0.5f, -0.5f, -0.5f }, { 0.5f, 0.5f, 0.5f } }); e.WorldCollidable(true); - e.SetShape(world.BlockTypes()[1].shape, color); + e.SetShape(world.BlockTypes()[1].shape, color, 2); e.AngularVelocity(rot); Controller *ctrl; if (rand() % 2) { ctrl = new RandomWalk(e); } else { - ctrl = new Chaser(e, world.Player()); + ctrl = new Chaser(world, e, world.Player()); } controllers.emplace_back(ctrl); }