- e.SetShape(world.BlockTypes()[1].shape, color);
- e.AngularVelocity(glm::quat(glm::vec3{ 0.00001f, 0.000006f, 0.000013f }));
- controllers.emplace_back(e);
+ e.GetModel().SetNodeModel(&models[rand() % 14]);
+ e.AngularVelocity(rot);
+ Controller *ctrl;
+ if (rand() % 2) {
+ ctrl = new RandomWalk(e);
+ } else {
+ ctrl = new Chaser(world, e, world.Player());
+ }
+ controllers.emplace_back(ctrl);