Construct a transformation matrix out of this transform @return glm matrix representing this transform */
| 100 | @return glm matrix representing this transform |
| 101 | */ |
| 102 | inline matrix4 Transform::GenerateLocalMatrix() { |
| 103 | return glm::translate(matrix4(1), (vector3)position) * glm::toMat4((quaternion)rotation) * glm::scale(matrix4(1), (vector3)scale); |
| 104 | } |
| 105 | |
| 106 | /** |
| 107 | @return the vector pointing in the forward direction of this transform |
no test coverage detected