Update EnhancedTransformNode.hx

This commit is contained in:
Maxim 2018-08-12 21:15:06 -05:00 committed by GitHub
parent 29ac0667f7
commit b88b6bb9f2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -14,10 +14,10 @@ class EnhancedTransformNode extends LogicNode {
override function run() {
var object:Object = inputs[1].get();
var loc:Vec4 = inputs[2].get();
var rot:Vec4 = inputs[3].get();
var scale:Vec4 = inputs[4].get();
var rot:Vec4 = inputs[3].get();
var scale:Vec4 = inputs[4].get();
if (loc == null || rot == null || scale == null) return;
if (loc == null || rot == null || scale == null) return;
// Location transform
object.transform.loc.x = loc.x;