Update TranslateOnLocalAxisNode.hx
This commit is contained in:
parent
c12a4367dd
commit
77a80e8f46
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue