MCPcopy Create free account
hub / github.com/RavEngine/RavEngine / GenerateLocalMatrix

Method GenerateLocalMatrix

include/RavEngine/Transform.hpp:102–104  ·  view source on GitHub ↗

Construct a transformation matrix out of this transform @return glm matrix representing this transform */

Source from the content-addressed store, hash-verified

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

Callers 1

GetParentMatrixStackMethod · 0.80

Calls 1

scaleFunction · 0.85

Tested by

no test coverage detected