Browse Source

correct setEntityPosition helper function

main
cinnaboot 4 years ago
parent
commit
b2c839b815
  1. 4
      src/entity.cpp

4
src/entity.cpp

@ -44,7 +44,9 @@ initEntity(Entity* e,
void void
setEntityPosition(Entity* e, glm::vec3 pos) setEntityPosition(Entity* e, glm::vec3 pos)
{ {
*e->model_xform = glm::translate(*e->model_xform, pos); (*e->model_xform)[3][0] = pos.x;
(*e->model_xform)[3][1] = pos.y;
(*e->model_xform)[3][2] = pos.z;
} }
void void

Loading…
Cancel
Save