|
|
|
@ -52,3 +52,9 @@ rotateEntity(Entity* e, glm::vec3 axis, float radians) |
|
|
|
*e->xform = glm::rotate(*e->xform, radians, axis); |
|
|
|
*e->xform = glm::rotate(*e->xform, radians, axis); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
void |
|
|
|
|
|
|
|
scaleEntity(Entity* e, float scale) |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
*e->xform = glm::scale(*e->xform, glm::vec3(scale, scale, scale)); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|