|
|
|
|
@ -44,7 +44,9 @@ initEntity(Entity* e,
|
|
|
|
|
void |
|
|
|
|
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 |
|
|
|
|
|