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

Method LocalRotateDelta

include/RavEngine/Transform.hpp:175–178  ·  view source on GitHub ↗

Additively apply a rotation to this transform in local (parent) space. @param delta the change in rotation to apply */

Source from the content-addressed store, hash-verified

173 @param delta the change in rotation to apply
174 */
175 inline void Transform::LocalRotateDelta(const quaternion& delta) {
176 //sum two quaternions by multiplying them
177 rotation = glm::toQuat(glm::toMat4((quaternion)rotation) * glm::toMat4(delta));
178 }
179
180 /**
181 Overwrite the rotation of this transform in world space

Callers 3

LookUpMethod · 0.80
LookRightMethod · 0.80
posttickMethod · 0.80

Calls 1

toQuatFunction · 0.85

Tested by 1

posttickMethod · 0.64