From: Daniel Karbach Date: Fri, 7 Aug 2015 13:19:55 +0000 (+0200) Subject: speed up entity rotation a little X-Git-Url: https://git.localhorst.tv/?a=commitdiff_plain;h=54deb92306a3de4fc1ee17fb7081a8b92f16ddda;p=blank.git speed up entity rotation a little because it's fun --- diff --git a/src/ai/Spawner.cpp b/src/ai/Spawner.cpp index 863678d..c73bcde 100644 --- a/src/ai/Spawner.cpp +++ b/src/ai/Spawner.cpp @@ -96,9 +96,9 @@ void Spawner::Spawn(const glm::ivec3 &chunk, const glm::vec3 &pos) { color = color * 0.15f + 0.25f; glm::vec3 rot(0.000001f); - rot.x *= (rand() % 32); - rot.y *= (rand() % 32); - rot.z *= (rand() % 32); + rot.x *= (rand() % 1024); + rot.y *= (rand() % 1024); + rot.z *= (rand() % 1024); Entity &e = world.AddEntity(); e.Name("test");