Update TranslateOnLocalAxisNode.hx

This commit is contained in:
Simonrazer 2019-03-29 15:26:57 +01:00
parent c12a4367dd
commit 77a80e8f46

View file

@ -25,6 +25,13 @@ class TranslateOnLocalAxisNode extends LogicNode {
else if (l == 2) loc.setFrom(object.transform.world.up());
else if (l == 3) loc.setFrom(object.transform.world.right());
if (ini) {
loc.x = -loc.x;
loc.y = -loc.y;
loc.z = -loc.z;
}
vec.x = loc.x * sp;
vec.y = loc.y * sp;
vec.z = loc.z * sp;