X-Git-Url: http://git.localhorst.tv/?a=blobdiff_plain;f=src%2Fworld%2FEntity.cpp;fp=src%2Fworld%2FEntity.cpp;h=49ad34bf07ef51c8eaaa5f99c64d89e6ab430827;hb=aefc5482b27e3d259b6c9f3f1e4cdd9ef2e6a8d2;hp=b06dbc38b50ccfbdebdc6df3c96a36afaeb483a2;hpb=79bff420037f150bd6efd2eef08bd06afafeb068;p=blank.git diff --git a/src/world/Entity.cpp b/src/world/Entity.cpp index b06dbc3..49ad34b 100644 --- a/src/world/Entity.cpp +++ b/src/world/Entity.cpp @@ -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) {