-void Entity::SetShape(const Shape *s, const glm::vec3 &color, float texture) {
- shape = s;
- model_buffer.Clear();
- shape->Vertices(model_buffer, texture);
- model_buffer.colors.resize(shape->VertexCount(), color);
- model.Update(model_buffer);
-}
-
-void Entity::SetShapeless() noexcept {
- shape = nullptr;
-}
-
-
-void Entity::Velocity(const glm::vec3 &vel) noexcept {
- velocity = vel;
-}
-
-void Entity::Position(const Chunk::Pos &c, const Block::Pos &pos) noexcept {