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

Method LocalTranslateDelta

include/RavEngine/Transform.hpp:131–134  ·  view source on GitHub ↗

Translate the transform in a direction in local (parent) space. This will add to its current position @param delta the change to apply */

Source from the content-addressed store, hash-verified

129 @param delta the change to apply
130 */
131 inline void Transform::LocalTranslateDelta(const vector3& delta) {
132 //set position value
133 position = (vector3)position + delta;
134 }
135
136 /**
137 Overwrite the position of the transform with a new position in local (parent) space

Callers 4

MoveForwardMethod · 0.80
MoveRightMethod · 0.80
MoveUpMethod · 0.80
TestWorldMethod · 0.80

Calls

no outgoing calls

Tested by 1

TestWorldMethod · 0.64