]> git.localhorst.tv Git - blank.git/blobdiff - src/world/Entity.cpp
randomly spawn entities around the player
[blank.git] / src / world / Entity.cpp
index b06dbc38b50ccfbdebdc6df3c96a36afaeb483a2..49ad34bf07ef51c8eaaa5f99c64d89e6ab430827 100644 (file)
@@ -46,6 +46,11 @@ void Entity::Velocity(const glm::vec3 &vel) noexcept {
        velocity = vel;
 }
 
+void Entity::Position(const Chunk::Pos &c, const Block::Pos &pos) noexcept {
+       chunk = c;
+       position = pos;
+}
+
 void Entity::Position(const Block::Pos &pos) noexcept {
        position = pos;
        while (position.x >= Chunk::width) {