diff --git a/Sources/arm/Intro_cam.hx b/Sources/arm/Intro_cam.hx new file mode 100644 index 0000000..28b92e2 --- /dev/null +++ b/Sources/arm/Intro_cam.hx @@ -0,0 +1,150 @@ +package arm; + +import iron.Scene; +import iron.math.Vec4; +import iron.math.Quat; +import iron.data.SceneFormat; +import iron.data.Data; +import iron.data.MeshData; +import iron.data.MaterialData; +import iron.system.Input; +import iron.system.Time; +import iron.system.Tween; + +// +// Intro_cam : Animation for the begining +// + +class Intro_cam extends iron.Trait { + + public function new() { + super(); + + // Start + var go= false; + + // Positions + var loc1 = new Vec4 (0.7 ,-7.8, 2); + var loc2 = new Vec4 (6.3 ,-15.7, 3); + + var deltax = (loc2.x-loc1.x)/1000; + var deltay = (loc2.y-loc1.y)/1000; + var deltaz = (loc2.z-loc1.z)/1000; + + var delta = [ + new Vec4 (0.0, 0.0, 0.0), + new Vec4 (-0.714604914188385, -1.9046026468276978, 0.36248692870140076), + new Vec4 (-0.2727598547935486, -3.9623684883117676, 0.6186656355857849), + new Vec4 (1.2784634828567505, -5.851366996765137, 0.7989855408668518), + new Vec4 (3.764294147491455, -7.323999881744385, 0.9349323511123657), + new Vec4 (6.88226318359375, -8.207002639770508, 1.0590277910232544), + new Vec4 (9.54699420928955, -8.419892311096191, 1.1722874641418457), + new Vec4 (12.064346313476562, -8.174274444580078, 1.3170785903930664), + new Vec4 (14.102925300598145, -7.484195232391357, 1.5114848613739014), + new Vec4 (15.088809967041016, -6.700578689575195, 1.7009670734405518), + new Vec4 (15.388349533081055, -6.067254543304443, 1.852500081062317), + new Vec4 (15.33479118347168, -5.358070373535156, 2.0269899368286133), + new Vec4 (14.867095947265625, -4.586199760437012, 2.226856231689453), + new Vec4 (14.457979202270508, -4.181393623352051, 2.337069272994995) + ] + + var duration=0.01; + + // + // notifyOnInit + // + + notifyOnInit(function() { + }); + + // + // notifyOnUpdate + // + + notifyOnUpdate(function() { + + var mouse = Input.getMouse(); + if (mouse.started()) { + go= true; + } + + if (loc2.x - object.transform.loc.x < 0.1 && loc2.y - object.transform.loc.y < 0.1 && loc2.z - object.transform.loc.z < 0.1) { + go= false; + } + + if (go) { + duration -= iron.system.Time.delta; + if (duration <= 0.0) { + object.transform.translate(deltax, deltay, deltaz); // x, y, z + duration=0.01; + }} + }); + + } +} + + + + + // transform = object.transform; + // var loc1 = new Vec4 (0.7 ,-7.8, 2); + // var rot1 = new Vec4 (1.220737 ,0, -0.964036); // rad + // var rot1 = new Vec4 (69.9 ,0, -55,2); // deg + // var loc2 = new Vec4 (6.3 ,-15.7, 3); + // var rot2 = new Vec4 (1.415082 ,0,419419); // rad + // var rot2 = new Vec4 (81.1 ,0,24); // deg + + // var deltax = (loc2.x-loc1.x)/10000; + // var deltay = (loc2.y-loc1.y)/10000; + // var deltaz = (loc2.z-loc1.z)/10000; + // var deltaa = (rot2.x-rot1.x)/10000; + // var deltab = (rot2.y-rot1.y)/10000; + // var deltac = (rot2.z-rot1.z)/10000; + + // var m = object.transform.world ; + + // for (i in 0...10) { + // // object.transform.translate(0, 0, 0.01); + // var from = object.transform.world.getLoc().z; + // // var from = object.transform.loc.z; + // var to=from+0.01; + // object.transform.loc.set(0, 0, to); + // object.transform.buildMatrix(); + + // object.transform.rotate(Vec4.xAxis(), deltaa); // Axis, angle in radians + // object.transform.rotate(Vec4.yAxis(), deltab); // Axis, angle in radians + // object.transform.rotate(Vec4.zAxis(), deltac); // Axis, angle in radians + + // object.transform.translate(0, 0, 0.0001); // x, y, z + // armory.system.Tween.timer(1, done); + + // Tween.to({ + // target: object.transform, + // props: { loc: new Vec4(0, 0, 0)}, + // duration: 1.0, + // }); + // armory.system.Tween.timer(1, done); + // trace(i); + + + // for (i in 0...1000) { + // Tween.to({ + // target: object.transform, + // props: { loc: new Vec4(object.transform.loc.x+deltax, object.transform.loc.y+deltay, object.transform.loc.z+deltaz), + // rot: new Quat(object.transform.rot.x+deltaa, object.transform.rot.y+deltab, object.transform.rot.z+deltac,0) }, + // duration: 10.0 + // }); + // trace(i); + // } + + + // var transform = object.transform; + // transform.translate(0.1, 0.1, 0.1); // x, y, z + // iron.system.Tween.timer(1, done); + // transform.translate(0.1, 0.1, 0.1); // x, y, z + + // notifyOnUpdate(function() { + // }); + + // notifyOnRemove(function() { + // }); diff --git a/Sources/arm/node/Decor.hx b/Sources/arm/node/Decor.hx index a2e260a..3320dfe 100644 --- a/Sources/arm/node/Decor.hx +++ b/Sources/arm/node/Decor.hx @@ -469,10 +469,6 @@ package arm.node; _Vector_003.addInput(new armory.logicnode.FloatNode(this, 135.0), 0); _Vector_003.addInput(new armory.logicnode.FloatNode(this, 0.0), 0); _Vector_003.addOutputs([new armory.logicnode.VectorNode(this, 0.0, 0.0, 0.0)]); - var _Print = new armory.logicnode.PrintNode(this); - _Print.addInput(new armory.logicnode.NullNode(this), 0); - _Print.addInput(new armory.logicnode.NullNode(this), 0); - _Print.addOutputs([new armory.logicnode.NullNode(this)]); var _CallFunction_016 = new armory.logicnode.CallFunctionNode(this); var _CallFunction_015 = new armory.logicnode.CallFunctionNode(this); var _CallFunction_014 = new armory.logicnode.CallFunctionNode(this); diff --git a/Sources/arm/node/Deplacement.hx b/Sources/arm/node/Deplacement.hx index 6e19fd2..5789be8 100644 --- a/Sources/arm/node/Deplacement.hx +++ b/Sources/arm/node/Deplacement.hx @@ -15,69 +15,6 @@ package arm.node; } override public function add() { - var _PlayAction_004 = new armory.logicnode.PlayActionNode(this); - var _IsFalse = new armory.logicnode.IsFalseNode(this); - var _OnKeyboard_004 = new armory.logicnode.OnKeyboardNode(this); - _OnKeyboard_004.property0 = "Down"; - _OnKeyboard_004.property1 = "left"; - _OnKeyboard_004.addOutputs([_IsFalse]); - _IsFalse.addInput(_OnKeyboard_004, 0); - var _GetProperty_002 = new armory.logicnode.GetPropertyNode(this); - _GetProperty_002.addInput(new armory.logicnode.ObjectNode(this, "Signpost_depart"), 0); - _GetProperty_002.addInput(new armory.logicnode.StringNode(this, "depart"), 0); - var _IsFalse_001 = new armory.logicnode.IsFalseNode(this); - var _OnKeyboard_005 = new armory.logicnode.OnKeyboardNode(this); - _OnKeyboard_005.property0 = "Down"; - _OnKeyboard_005.property1 = "right"; - _OnKeyboard_005.addOutputs([_IsFalse_001]); - _IsFalse_001.addInput(_OnKeyboard_005, 0); - _IsFalse_001.addInput(_GetProperty_002, 0); - var _RotateObject_001 = new armory.logicnode.RotateObjectNode(this); - _RotateObject_001.addInput(_IsFalse_001, 0); - _RotateObject_001.addInput(new armory.logicnode.ObjectNode(this, ""), 0); - var _Vector_001 = new armory.logicnode.VectorNode(this); - _Vector_001.addInput(new armory.logicnode.FloatNode(this, 0.0), 0); - _Vector_001.addInput(new armory.logicnode.FloatNode(this, 0.0), 0); - var _Math = new armory.logicnode.MathNode(this); - _Math.property0 = "Multiply"; - _Math.property1 = "false"; - var _Float_001 = new armory.logicnode.FloatNode(this); - _Float_001.addInput(new armory.logicnode.FloatNode(this, 0.05000000074505806), 0); - var _Vector = new armory.logicnode.VectorNode(this); - _Vector.addInput(new armory.logicnode.FloatNode(this, 0.0), 0); - _Vector.addInput(new armory.logicnode.FloatNode(this, 0.0), 0); - _Vector.addInput(_Float_001, 0); - var _RotateObject = new armory.logicnode.RotateObjectNode(this); - _RotateObject.addInput(_IsFalse, 0); - _RotateObject.addInput(new armory.logicnode.ObjectNode(this, ""), 0); - _RotateObject.addInput(_Vector, 0); - _RotateObject.addOutputs([new armory.logicnode.NullNode(this)]); - _Vector.addOutputs([_RotateObject]); - _Float_001.addOutputs([_Vector, _Math]); - _Math.addInput(_Float_001, 0); - _Math.addInput(new armory.logicnode.FloatNode(this, -1.0), 0); - _Math.addOutputs([_Vector_001]); - _Vector_001.addInput(_Math, 0); - _Vector_001.addOutputs([_RotateObject_001]); - _RotateObject_001.addInput(_Vector_001, 0); - _RotateObject_001.addOutputs([new armory.logicnode.NullNode(this)]); - var _PlayAction_003 = new armory.logicnode.PlayActionNode(this); - _PlayAction_003.addInput(_IsFalse_001, 0); - _PlayAction_003.addInput(new armory.logicnode.ObjectNode(this, "RigFrankie"), 0); - _PlayAction_003.addInput(new armory.logicnode.StringNode(this, "Frankie_Turn.R"), 0); - _PlayAction_003.addInput(new armory.logicnode.FloatNode(this, 0.20000000298023224), 0); - _PlayAction_003.addOutputs([new armory.logicnode.NullNode(this)]); - _PlayAction_003.addOutputs([new armory.logicnode.NullNode(this)]); - _IsFalse_001.addOutputs([_RotateObject_001, _PlayAction_003]); - _GetProperty_002.addOutputs([_IsFalse, _IsFalse_001]); - _IsFalse.addInput(_GetProperty_002, 0); - _IsFalse.addOutputs([_RotateObject, _PlayAction_004]); - _PlayAction_004.addInput(_IsFalse, 0); - _PlayAction_004.addInput(new armory.logicnode.ObjectNode(this, "RigFrankie"), 0); - _PlayAction_004.addInput(new armory.logicnode.StringNode(this, "Frankie_Turn.L"), 0); - _PlayAction_004.addInput(new armory.logicnode.FloatNode(this, 0.20000000298023224), 0); - _PlayAction_004.addOutputs([new armory.logicnode.NullNode(this)]); - _PlayAction_004.addOutputs([new armory.logicnode.NullNode(this)]); var _PlayAction_002 = new armory.logicnode.PlayActionNode(this); var _Branch_001 = new armory.logicnode.BranchNode(this); var _ArrayLoop_001 = new armory.logicnode.ArrayLoopNode(this); @@ -369,5 +306,124 @@ package arm.node; _PlayAction_005.addInput(new armory.logicnode.FloatNode(this, 0.20000000298023224), 0); _PlayAction_005.addOutputs([new armory.logicnode.NullNode(this)]); _PlayAction_005.addOutputs([new armory.logicnode.NullNode(this)]); + var _SetActionSpeed = new armory.logicnode.SetActionSpeedNode(this); + _SetActionSpeed.addInput(new armory.logicnode.NullNode(this), 0); + _SetActionSpeed.addInput(new armory.logicnode.ObjectNode(this, "Joueur"), 0); + _SetActionSpeed.addInput(new armory.logicnode.FloatNode(this, 0.5), 0); + _SetActionSpeed.addOutputs([new armory.logicnode.NullNode(this)]); + var _RotateObject_002 = new armory.logicnode.RotateObjectNode(this); + var _Branch_002 = new armory.logicnode.BranchNode(this); + var _IsFalse = new armory.logicnode.IsFalseNode(this); + var _OnKeyboard_004 = new armory.logicnode.OnKeyboardNode(this); + _OnKeyboard_004.property0 = "Down"; + _OnKeyboard_004.property1 = "left"; + _OnKeyboard_004.addOutputs([_IsFalse]); + _IsFalse.addInput(_OnKeyboard_004, 0); + var _GetProperty_002 = new armory.logicnode.GetPropertyNode(this); + _GetProperty_002.addInput(new armory.logicnode.ObjectNode(this, "Signpost_depart"), 0); + _GetProperty_002.addInput(new armory.logicnode.StringNode(this, "depart"), 0); + var _IsFalse_001 = new armory.logicnode.IsFalseNode(this); + var _OnKeyboard_005 = new armory.logicnode.OnKeyboardNode(this); + _OnKeyboard_005.property0 = "Down"; + _OnKeyboard_005.property1 = "right"; + _OnKeyboard_005.addOutputs([_IsFalse_001]); + _IsFalse_001.addInput(_OnKeyboard_005, 0); + _IsFalse_001.addInput(_GetProperty_002, 0); + var _Branch_003 = new armory.logicnode.BranchNode(this); + _Branch_003.addInput(_IsFalse_001, 0); + var _GetProperty_005 = new armory.logicnode.GetPropertyNode(this); + _GetProperty_005.addInput(new armory.logicnode.ObjectNode(this, "Camera_fps"), 0); + _GetProperty_005.addInput(new armory.logicnode.StringNode(this, "camera_fps"), 0); + _GetProperty_005.addOutputs([_Branch_002, _Branch_003]); + _Branch_003.addInput(_GetProperty_005, 0); + var _Merge_003 = new armory.logicnode.MergeNode(this); + _Merge_003.addInput(_Branch_003, 0); + _Merge_003.addInput(_Branch_003, 1); + var _PlayAction_003 = new armory.logicnode.PlayActionNode(this); + _PlayAction_003.addInput(_Merge_003, 0); + _PlayAction_003.addInput(new armory.logicnode.ObjectNode(this, "RigFrankie"), 0); + _PlayAction_003.addInput(new armory.logicnode.StringNode(this, "Frankie_Turn.R"), 0); + _PlayAction_003.addInput(new armory.logicnode.FloatNode(this, 0.20000000298023224), 0); + _PlayAction_003.addOutputs([new armory.logicnode.NullNode(this)]); + _PlayAction_003.addOutputs([new armory.logicnode.NullNode(this)]); + _Merge_003.addOutputs([_PlayAction_003]); + var _RotateObject_003 = new armory.logicnode.RotateObjectNode(this); + _RotateObject_003.addInput(_Branch_003, 0); + _RotateObject_003.addInput(new armory.logicnode.ObjectNode(this, ""), 0); + var _Vector_004 = new armory.logicnode.VectorNode(this); + _Vector_004.addInput(new armory.logicnode.FloatNode(this, 0.0), 0); + _Vector_004.addInput(new armory.logicnode.FloatNode(this, 0.0), 0); + var _Math_001 = new armory.logicnode.MathNode(this); + _Math_001.property0 = "Multiply"; + _Math_001.property1 = "false"; + var _Float_003 = new armory.logicnode.FloatNode(this); + _Float_003.addInput(new armory.logicnode.FloatNode(this, 0.019999999552965164), 0); + var _Vector_003 = new armory.logicnode.VectorNode(this); + _Vector_003.addInput(new armory.logicnode.FloatNode(this, 0.0), 0); + _Vector_003.addInput(new armory.logicnode.FloatNode(this, 0.0), 0); + _Vector_003.addInput(_Float_003, 0); + _Vector_003.addOutputs([_RotateObject_002]); + _Float_003.addOutputs([_Vector_003, _Math_001]); + _Math_001.addInput(_Float_003, 0); + _Math_001.addInput(new armory.logicnode.FloatNode(this, -1.0), 0); + _Math_001.addOutputs([_Vector_004]); + _Vector_004.addInput(_Math_001, 0); + _Vector_004.addOutputs([_RotateObject_003]); + _RotateObject_003.addInput(_Vector_004, 0); + _RotateObject_003.addOutputs([new armory.logicnode.NullNode(this)]); + _Branch_003.addOutputs([_Merge_003, _RotateObject_003]); + var _RotateObject_001 = new armory.logicnode.RotateObjectNode(this); + _RotateObject_001.addInput(_Branch_003, 1); + _RotateObject_001.addInput(new armory.logicnode.ObjectNode(this, ""), 0); + var _Vector_001 = new armory.logicnode.VectorNode(this); + _Vector_001.addInput(new armory.logicnode.FloatNode(this, 0.0), 0); + _Vector_001.addInput(new armory.logicnode.FloatNode(this, 0.0), 0); + var _Math = new armory.logicnode.MathNode(this); + _Math.property0 = "Multiply"; + _Math.property1 = "false"; + var _Float_001 = new armory.logicnode.FloatNode(this); + _Float_001.addInput(new armory.logicnode.FloatNode(this, 0.05000000074505806), 0); + var _Vector = new armory.logicnode.VectorNode(this); + _Vector.addInput(new armory.logicnode.FloatNode(this, 0.0), 0); + _Vector.addInput(new armory.logicnode.FloatNode(this, 0.0), 0); + _Vector.addInput(_Float_001, 0); + var _RotateObject = new armory.logicnode.RotateObjectNode(this); + _RotateObject.addInput(_Branch_002, 1); + _RotateObject.addInput(new armory.logicnode.ObjectNode(this, ""), 0); + _RotateObject.addInput(_Vector, 0); + _RotateObject.addOutputs([new armory.logicnode.NullNode(this)]); + _Vector.addOutputs([_RotateObject]); + _Float_001.addOutputs([_Vector, _Math]); + _Math.addInput(_Float_001, 0); + _Math.addInput(new armory.logicnode.FloatNode(this, -1.0), 0); + _Math.addOutputs([_Vector_001]); + _Vector_001.addInput(_Math, 0); + _Vector_001.addOutputs([_RotateObject_001]); + _RotateObject_001.addInput(_Vector_001, 0); + _RotateObject_001.addOutputs([new armory.logicnode.NullNode(this)]); + _Branch_003.addOutputs([_Merge_003, _RotateObject_001]); + _IsFalse_001.addOutputs([_Branch_003]); + _GetProperty_002.addOutputs([_IsFalse, _IsFalse_001]); + _IsFalse.addInput(_GetProperty_002, 0); + _IsFalse.addOutputs([_Branch_002]); + _Branch_002.addInput(_IsFalse, 0); + _Branch_002.addInput(_GetProperty_005, 0); + var _Merge_002 = new armory.logicnode.MergeNode(this); + _Merge_002.addInput(_Branch_002, 0); + _Merge_002.addInput(_Branch_002, 1); + var _PlayAction_004 = new armory.logicnode.PlayActionNode(this); + _PlayAction_004.addInput(_Merge_002, 0); + _PlayAction_004.addInput(new armory.logicnode.ObjectNode(this, "RigFrankie"), 0); + _PlayAction_004.addInput(new armory.logicnode.StringNode(this, "Frankie_Turn.L"), 0); + _PlayAction_004.addInput(new armory.logicnode.FloatNode(this, 0.20000000298023224), 0); + _PlayAction_004.addOutputs([new armory.logicnode.NullNode(this)]); + _PlayAction_004.addOutputs([new armory.logicnode.NullNode(this)]); + _Merge_002.addOutputs([_PlayAction_004]); + _Branch_002.addOutputs([_Merge_002, _RotateObject_002]); + _Branch_002.addOutputs([_RotateObject, _Merge_002]); + _RotateObject_002.addInput(_Branch_002, 0); + _RotateObject_002.addInput(new armory.logicnode.ObjectNode(this, ""), 0); + _RotateObject_002.addInput(_Vector_003, 0); + _RotateObject_002.addOutputs([new armory.logicnode.NullNode(this)]); } } \ No newline at end of file diff --git a/Sources/arm/node/Generale.hx b/Sources/arm/node/Generale.hx index d918c43..ccfe239 100644 --- a/Sources/arm/node/Generale.hx +++ b/Sources/arm/node/Generale.hx @@ -15,6 +15,13 @@ package arm.node; } override public function add() { + var _Shutdown = new armory.logicnode.ShutdownNode(this); + var _OnKeyboard = new armory.logicnode.OnKeyboardNode(this); + _OnKeyboard.property0 = "Down"; + _OnKeyboard.property1 = "escape"; + _OnKeyboard.addOutputs([_Shutdown]); + _Shutdown.addInput(_OnKeyboard, 0); + _Shutdown.addOutputs([new armory.logicnode.NullNode(this)]); var _SetProperty_001 = new armory.logicnode.SetPropertyNode(this); var _OnInit = new armory.logicnode.OnInitNode(this); _OnInit.addOutputs([_SetProperty_001]); @@ -26,7 +33,10 @@ package arm.node; _Boolean.addOutputs([_SetProperty_001]); _SetProperty_001.addInput(_Boolean, 0); _SetProperty_001.addOutputs([new armory.logicnode.NullNode(this)]); - var _SetCamera = new armory.logicnode.SetCameraNode(this); + var _OnKeyboard_002 = new armory.logicnode.OnKeyboardNode(this); + _OnKeyboard_002.property0 = "Released"; + _OnKeyboard_002.property1 = "space"; + _OnKeyboard_002.addOutputs([new armory.logicnode.NullNode(this)]); var _SetProperty_002 = new armory.logicnode.SetPropertyNode(this); var _IsTrue = new armory.logicnode.IsTrueNode(this); var _Merge = new armory.logicnode.MergeNode(this); @@ -76,20 +86,16 @@ package arm.node; _Boolean_001.addInput(new armory.logicnode.BooleanNode(this, false), 0); _Boolean_001.addOutputs([_SetProperty_002]); _SetProperty_002.addInput(_Boolean_001, 0); - _SetProperty_002.addOutputs([_SetCamera]); - _SetCamera.addInput(_SetProperty_002, 0); + _SetProperty_002.addOutputs([new armory.logicnode.NullNode(this)]); + var _CallFunction = new armory.logicnode.CallFunctionNode(this); + _CallFunction.addInput(new armory.logicnode.NullNode(this), 0); + _CallFunction.addInput(new armory.logicnode.NullNode(this), 0); + _CallFunction.addInput(new armory.logicnode.StringNode(this, "Camera_departAction"), 0); + _CallFunction.addOutputs([new armory.logicnode.NullNode(this)]); + _CallFunction.addOutputs([new armory.logicnode.NullNode(this)]); + var _SetCamera = new armory.logicnode.SetCameraNode(this); + _SetCamera.addInput(new armory.logicnode.NullNode(this), 0); _SetCamera.addInput(new armory.logicnode.ObjectNode(this, "Camera.001"), 0); _SetCamera.addOutputs([new armory.logicnode.NullNode(this)]); - var _OnKeyboard_002 = new armory.logicnode.OnKeyboardNode(this); - _OnKeyboard_002.property0 = "Released"; - _OnKeyboard_002.property1 = "space"; - _OnKeyboard_002.addOutputs([new armory.logicnode.NullNode(this)]); - var _Shutdown = new armory.logicnode.ShutdownNode(this); - var _OnKeyboard = new armory.logicnode.OnKeyboardNode(this); - _OnKeyboard.property0 = "Down"; - _OnKeyboard.property1 = "escape"; - _OnKeyboard.addOutputs([_Shutdown]); - _Shutdown.addInput(_OnKeyboard, 0); - _Shutdown.addOutputs([new armory.logicnode.NullNode(this)]); } } \ No newline at end of file diff --git a/Sources/arm/node/Intro.hx b/Sources/arm/node/Intro.hx new file mode 100644 index 0000000..adad06e --- /dev/null +++ b/Sources/arm/node/Intro.hx @@ -0,0 +1,303 @@ +package arm.node; + +@:keep class Intro extends armory.logicnode.LogicTree { + + var functionNodes:Map; + + var functionOutputNodes:Map; + + public function new() { + super(); + name = "Intro"; + this.functionNodes = new Map(); + this.functionOutputNodes = new Map(); + notifyOnAdd(add); + } + + override public function add() { + var _TranslateObject = new armory.logicnode.TranslateObjectNode(this); + _TranslateObject.addInput(new armory.logicnode.NullNode(this), 0); + _TranslateObject.addInput(new armory.logicnode.ObjectNode(this, ""), 0); + _TranslateObject.addInput(new armory.logicnode.VectorNode(this, 0.0, 0.0, 0.0), 0); + _TranslateObject.addOutputs([new armory.logicnode.NullNode(this)]); + var _Print_001 = new armory.logicnode.PrintNode(this); + var _Print = new armory.logicnode.PrintNode(this); + var _SetLocation = new armory.logicnode.SetLocationNode(this); + var _Loop = new armory.logicnode.LoopNode(this); + var _SetVariable = new armory.logicnode.SetVariableNode(this); + var _SetVariable_001 = new armory.logicnode.SetVariableNode(this); + _SetVariable_001.addInput(new armory.logicnode.NullNode(this), 0); + var _Vector_002 = new armory.logicnode.VectorNode(this); + _Vector_002.addInput(new armory.logicnode.FloatNode(this, 0.0), 0); + _Vector_002.addInput(new armory.logicnode.FloatNode(this, 0.0), 0); + _Vector_002.addInput(new armory.logicnode.FloatNode(this, 0.0), 0); + var _VectorMath_003 = new armory.logicnode.VectorMathNode(this); + _VectorMath_003.property0 = "Add"; + _VectorMath_003.addInput(_Vector_002, 0); + var _VectorMath_002 = new armory.logicnode.VectorMathNode(this); + _VectorMath_002.property0 = "Multiply"; + var _VectorMath_001 = new armory.logicnode.VectorMathNode(this); + _VectorMath_001.property0 = "Multiply"; + var _VectorMath = new armory.logicnode.VectorMathNode(this); + _VectorMath.property0 = "Subtract"; + var _ArrayGet = new armory.logicnode.ArrayGetNode(this); + var _Array_Vector_ = new armory.logicnode.ArrayVectorNode(this); + var _Vector_001 = new armory.logicnode.VectorNode(this); + _Vector_001.addInput(new armory.logicnode.FloatNode(this, 0.699999988079071), 0); + _Vector_001.addInput(new armory.logicnode.FloatNode(this, -7.800000190734863), 0); + _Vector_001.addInput(new armory.logicnode.FloatNode(this, 2.0), 0); + _Vector_001.addOutputs([_Array_Vector_]); + _Array_Vector_.addInput(_Vector_001, 0); + var _Vector = new armory.logicnode.VectorNode(this); + _Vector.addInput(new armory.logicnode.FloatNode(this, 6.300000190734863), 0); + _Vector.addInput(new armory.logicnode.FloatNode(this, -15.699999809265137), 0); + _Vector.addInput(new armory.logicnode.FloatNode(this, 3.0), 0); + _Vector.addOutputs([_Array_Vector_]); + _Array_Vector_.addInput(_Vector, 0); + _Array_Vector_.addInput(new armory.logicnode.VectorNode(this, 0.0, 0.0, 0.0), 0); + _Array_Vector_.addInput(new armory.logicnode.VectorNode(this, 0.0, 0.0, 0.0), 0); + var _ArrayGet_001 = new armory.logicnode.ArrayGetNode(this); + _ArrayGet_001.addInput(_Array_Vector_, 0); + _ArrayGet_001.addInput(new armory.logicnode.IntegerNode(this, 0), 0); + _ArrayGet_001.addOutputs([_VectorMath]); + _Array_Vector_.addOutputs([_ArrayGet, _ArrayGet_001]); + _Array_Vector_.addOutputs([new armory.logicnode.IntegerNode(this, 0)]); + _ArrayGet.addInput(_Array_Vector_, 0); + _ArrayGet.addInput(new armory.logicnode.IntegerNode(this, 1), 0); + _ArrayGet.addOutputs([_VectorMath]); + _VectorMath.addInput(_ArrayGet, 0); + _VectorMath.addInput(_ArrayGet_001, 0); + _VectorMath.addOutputs([_VectorMath_001]); + _VectorMath.addOutputs([new armory.logicnode.FloatNode(this, 0.0)]); + _VectorMath_001.addInput(_VectorMath, 0); + var _Vector_004 = new armory.logicnode.VectorNode(this); + var _Float_002 = new armory.logicnode.FloatNode(this); + _Float_002.addInput(new armory.logicnode.FloatNode(this, 0.009999999776482582), 0); + _Float_002.addOutputs([_Vector_004, _Vector_004, _Vector_004]); + _Vector_004.addInput(_Float_002, 0); + _Vector_004.addInput(_Float_002, 0); + _Vector_004.addInput(_Float_002, 0); + _Vector_004.addOutputs([_VectorMath_001]); + _VectorMath_001.addInput(_Vector_004, 0); + _VectorMath_001.addOutputs([_VectorMath_002, _Print_001]); + _VectorMath_001.addOutputs([new armory.logicnode.FloatNode(this, 0.0)]); + _VectorMath_002.addInput(_VectorMath_001, 0); + var _Vector_003 = new armory.logicnode.VectorNode(this); + var _Math_001 = new armory.logicnode.MathNode(this); + _Math_001.property0 = "Add"; + _Math_001.property1 = "false"; + var _Math = new armory.logicnode.MathNode(this); + _Math.property0 = "Subtract"; + _Math.property1 = "false"; + var _Time_001 = new armory.logicnode.TimeNode(this); + _Time_001.addOutputs([_Math]); + _Time_001.addOutputs([new armory.logicnode.FloatNode(this, 0.0)]); + _Math.addInput(_Time_001, 0); + var _Float = new armory.logicnode.FloatNode(this); + _Float.addInput(new armory.logicnode.FloatNode(this, 0.0), 0); + _Float.addOutputs([_SetVariable, _Math]); + _Math.addInput(_Float, 0); + _Math.addOutputs([_Math_001]); + _Math_001.addInput(_Math, 0); + var _Float_001 = new armory.logicnode.FloatNode(this); + _Float_001.addInput(new armory.logicnode.FloatNode(this, 0.009999999776482582), 0); + _Float_001.addOutputs([_Math_001]); + _Math_001.addInput(_Float_001, 0); + _Math_001.addOutputs([_Vector_003, _Vector_003, _Vector_003]); + _Vector_003.addInput(_Math_001, 0); + _Vector_003.addInput(_Math_001, 0); + _Vector_003.addInput(_Math_001, 0); + _Vector_003.addOutputs([_VectorMath_002]); + _VectorMath_002.addInput(_Vector_003, 0); + _VectorMath_002.addOutputs([_VectorMath_003]); + _VectorMath_002.addOutputs([new armory.logicnode.FloatNode(this, 0.0)]); + _VectorMath_003.addInput(_VectorMath_002, 0); + _VectorMath_003.addOutputs([_SetLocation]); + _VectorMath_003.addOutputs([new armory.logicnode.FloatNode(this, 0.0)]); + _Vector_002.addOutputs([_SetVariable_001, _VectorMath_003]); + _SetVariable_001.addInput(_Vector_002, 0); + var _GetLocation = new armory.logicnode.GetLocationNode(this); + _GetLocation.addInput(new armory.logicnode.ObjectNode(this, ""), 0); + _GetLocation.addOutputs([_SetVariable_001]); + _SetVariable_001.addInput(_GetLocation, 0); + _SetVariable_001.addOutputs([_SetVariable]); + _SetVariable.addInput(_SetVariable_001, 0); + _SetVariable.addInput(_Float, 0); + var _Time = new armory.logicnode.TimeNode(this); + _Time.addOutputs([_SetVariable]); + _Time.addOutputs([new armory.logicnode.FloatNode(this, 0.0)]); + _SetVariable.addInput(_Time, 0); + _SetVariable.addOutputs([_Loop]); + _Loop.addInput(_SetVariable, 0); + _Loop.addInput(new armory.logicnode.IntegerNode(this, 0), 0); + _Loop.addInput(new armory.logicnode.IntegerNode(this, 100), 0); + _Loop.addOutputs([_SetLocation]); + _Loop.addOutputs([_Print]); + _Loop.addOutputs([new armory.logicnode.NullNode(this)]); + _SetLocation.addInput(_Loop, 0); + _SetLocation.addInput(new armory.logicnode.ObjectNode(this, ""), 0); + _SetLocation.addInput(_VectorMath_003, 0); + _SetLocation.addOutputs([_Print]); + _Print.addInput(_SetLocation, 0); + _Print.addInput(_Loop, 1); + _Print.addOutputs([_Print_001]); + _Print_001.addInput(_Print, 0); + _Print_001.addInput(_VectorMath_001, 0); + _Print_001.addOutputs([new armory.logicnode.NullNode(this)]); + var _VectorMath_004 = new armory.logicnode.VectorMathNode(this); + _VectorMath_004.property0 = "Multiply"; + _VectorMath_004.addInput(new armory.logicnode.VectorNode(this, 0.5, 0.5, 0.5), 0); + _VectorMath_004.addInput(new armory.logicnode.VectorNode(this, 0.009999999776482582, 0.009999999776482582, 0.009999999776482582), 0); + _VectorMath_004.addOutputs([new armory.logicnode.VectorNode(this, 0.0, 0.0, 0.0)]); + _VectorMath_004.addOutputs([new armory.logicnode.FloatNode(this, 0.0)]); + var _OnTimer = new armory.logicnode.OnTimerNode(this); + _OnTimer.addInput(new armory.logicnode.FloatNode(this, 0.0), 0); + _OnTimer.addInput(new armory.logicnode.BooleanNode(this, false), 0); + _OnTimer.addOutputs([new armory.logicnode.NullNode(this)]); + var _OnMouse = new armory.logicnode.OnMouseNode(this); + _OnMouse.property0 = "Down"; + _OnMouse.property1 = "left"; + _OnMouse.addOutputs([new armory.logicnode.NullNode(this)]); + var _SetVariable_003 = new armory.logicnode.SetVariableNode(this); + var _OnMouse_001 = new armory.logicnode.OnMouseNode(this); + _OnMouse_001.property0 = "Down"; + _OnMouse_001.property1 = "left"; + _OnMouse_001.addOutputs([_SetVariable_003]); + _SetVariable_003.addInput(_OnMouse_001, 0); + var _Boolean = new armory.logicnode.BooleanNode(this); + _Boolean.addInput(new armory.logicnode.BooleanNode(this, false), 0); + var _SetVariable_004 = new armory.logicnode.SetVariableNode(this); + var _OnInit = new armory.logicnode.OnInitNode(this); + _OnInit.addOutputs([_SetVariable_004]); + _SetVariable_004.addInput(_OnInit, 0); + _SetVariable_004.addInput(_Boolean, 0); + _SetVariable_004.addInput(new armory.logicnode.NullNode(this), 0); + _SetVariable_004.addOutputs([new armory.logicnode.NullNode(this)]); + var _IsTrue = new armory.logicnode.IsTrueNode(this); + var _OnTimer_001 = new armory.logicnode.OnTimerNode(this); + _OnTimer_001.addInput(new armory.logicnode.FloatNode(this, 0.009999999776482582), 0); + _OnTimer_001.addInput(new armory.logicnode.BooleanNode(this, true), 0); + _OnTimer_001.addOutputs([_IsTrue]); + _IsTrue.addInput(_OnTimer_001, 0); + _IsTrue.addInput(_Boolean, 0); + var _TranslateObject_001 = new armory.logicnode.TranslateObjectNode(this); + _TranslateObject_001.addInput(_IsTrue, 0); + _TranslateObject_001.addInput(new armory.logicnode.ObjectNode(this, ""), 0); + var _VectorMath_006 = new armory.logicnode.VectorMathNode(this); + _VectorMath_006.property0 = "Multiply"; + var _VectorMath_005 = new armory.logicnode.VectorMathNode(this); + _VectorMath_005.property0 = "Subtract"; + var _ArrayGet_002 = new armory.logicnode.ArrayGetNode(this); + var _Array_Vector__001 = new armory.logicnode.ArrayVectorNode(this); + var _Vector_006 = new armory.logicnode.VectorNode(this); + _Vector_006.addInput(new armory.logicnode.FloatNode(this, 0.699999988079071), 0); + _Vector_006.addInput(new armory.logicnode.FloatNode(this, -7.800000190734863), 0); + _Vector_006.addInput(new armory.logicnode.FloatNode(this, 2.0), 0); + _Vector_006.addOutputs([_Array_Vector__001]); + _Array_Vector__001.addInput(_Vector_006, 0); + var _Vector_007 = new armory.logicnode.VectorNode(this); + _Vector_007.addInput(new armory.logicnode.FloatNode(this, 6.300000190734863), 0); + _Vector_007.addInput(new armory.logicnode.FloatNode(this, -15.699999809265137), 0); + _Vector_007.addInput(new armory.logicnode.FloatNode(this, 3.0), 0); + var _VectorMath_008 = new armory.logicnode.VectorMathNode(this); + _VectorMath_008.property0 = "Subtract"; + _VectorMath_008.addInput(_Vector_007, 0); + var _GetLocation_002 = new armory.logicnode.GetLocationNode(this); + _GetLocation_002.addInput(new armory.logicnode.ObjectNode(this, ""), 0); + _GetLocation_002.addOutputs([_VectorMath_008]); + _VectorMath_008.addInput(_GetLocation_002, 0); + var _SeparateXYZ_008 = new armory.logicnode.SeparateVectorNode(this); + _SeparateXYZ_008.addInput(_VectorMath_008, 0); + var _Compare_009 = new armory.logicnode.CompareNode(this); + _Compare_009.property0 = "Almost Equal"; + _Compare_009.property1 = 0.10000000149011612; + _Compare_009.addInput(_SeparateXYZ_008, 0); + var _Float_007 = new armory.logicnode.FloatNode(this); + _Float_007.addInput(new armory.logicnode.FloatNode(this, 0.0), 0); + var _Compare_010 = new armory.logicnode.CompareNode(this); + _Compare_010.property0 = "Almost Equal"; + _Compare_010.property1 = 0.10000000149011612; + _Compare_010.addInput(_SeparateXYZ_008, 2); + _Compare_010.addInput(_Float_007, 0); + var _Compare_011 = new armory.logicnode.CompareNode(this); + _Compare_011.property0 = "And"; + _Compare_011.property1 = 9.999999747378752e-05; + _Compare_011.addInput(_Compare_009, 0); + var _Compare_008 = new armory.logicnode.CompareNode(this); + _Compare_008.property0 = "Almost Equal"; + _Compare_008.property1 = 0.10000000149011612; + _Compare_008.addInput(_SeparateXYZ_008, 1); + _Compare_008.addInput(_Float_007, 0); + _Compare_008.addOutputs([_Compare_011]); + _Compare_011.addInput(_Compare_008, 0); + _Compare_011.addInput(_Compare_010, 0); + var _IsTrue_007 = new armory.logicnode.IsTrueNode(this); + var _Print_003 = new armory.logicnode.PrintNode(this); + _Print_003.addInput(_TranslateObject_001, 0); + _Print_003.addInput(_VectorMath_008, 0); + _Print_003.addOutputs([_IsTrue_007]); + _IsTrue_007.addInput(_Print_003, 0); + _IsTrue_007.addInput(_Compare_011, 0); + var _SetVariable_005 = new armory.logicnode.SetVariableNode(this); + _SetVariable_005.addInput(_IsTrue_007, 0); + _SetVariable_005.addInput(_Boolean, 0); + var _Boolean_002 = new armory.logicnode.BooleanNode(this); + _Boolean_002.addInput(new armory.logicnode.BooleanNode(this, false), 0); + _Boolean_002.addOutputs([_SetVariable_005]); + _SetVariable_005.addInput(_Boolean_002, 0); + _SetVariable_005.addOutputs([new armory.logicnode.NullNode(this)]); + _IsTrue_007.addOutputs([_SetVariable_005]); + _Compare_011.addOutputs([_IsTrue_007]); + _Compare_010.addOutputs([_Compare_011]); + _Float_007.addOutputs([_Compare_010, _Compare_008, _Compare_009]); + _Compare_009.addInput(_Float_007, 0); + _Compare_009.addOutputs([_Compare_011]); + _SeparateXYZ_008.addOutputs([_Compare_009]); + _SeparateXYZ_008.addOutputs([_Compare_008]); + _SeparateXYZ_008.addOutputs([_Compare_010]); + _VectorMath_008.addOutputs([_SeparateXYZ_008, _Print_003]); + _VectorMath_008.addOutputs([new armory.logicnode.FloatNode(this, 0.0)]); + _Vector_007.addOutputs([_Array_Vector__001, _VectorMath_008]); + _Array_Vector__001.addInput(_Vector_007, 0); + _Array_Vector__001.addInput(new armory.logicnode.VectorNode(this, 0.0, 0.0, 0.0), 0); + _Array_Vector__001.addInput(new armory.logicnode.VectorNode(this, 0.0, 0.0, 0.0), 0); + var _ArrayGet_003 = new armory.logicnode.ArrayGetNode(this); + _ArrayGet_003.addInput(_Array_Vector__001, 0); + _ArrayGet_003.addInput(new armory.logicnode.IntegerNode(this, 0), 0); + _ArrayGet_003.addOutputs([_VectorMath_005]); + _Array_Vector__001.addOutputs([_ArrayGet_002, _ArrayGet_003]); + _Array_Vector__001.addOutputs([new armory.logicnode.IntegerNode(this, 0)]); + _ArrayGet_002.addInput(_Array_Vector__001, 0); + _ArrayGet_002.addInput(new armory.logicnode.IntegerNode(this, 1), 0); + _ArrayGet_002.addOutputs([_VectorMath_005]); + _VectorMath_005.addInput(_ArrayGet_002, 0); + _VectorMath_005.addInput(_ArrayGet_003, 0); + _VectorMath_005.addOutputs([_VectorMath_006]); + _VectorMath_005.addOutputs([new armory.logicnode.FloatNode(this, 0.0)]); + _VectorMath_006.addInput(_VectorMath_005, 0); + var _Vector_009 = new armory.logicnode.VectorNode(this); + var _Float_005 = new armory.logicnode.FloatNode(this); + _Float_005.addInput(new armory.logicnode.FloatNode(this, 0.0010000000474974513), 0); + _Float_005.addOutputs([_Vector_009, _Vector_009, _Vector_009]); + _Vector_009.addInput(_Float_005, 0); + _Vector_009.addInput(_Float_005, 0); + _Vector_009.addInput(_Float_005, 0); + _Vector_009.addOutputs([_VectorMath_006]); + _VectorMath_006.addInput(_Vector_009, 0); + _VectorMath_006.addOutputs([_TranslateObject_001]); + _VectorMath_006.addOutputs([new armory.logicnode.FloatNode(this, 0.0)]); + _TranslateObject_001.addInput(_VectorMath_006, 0); + _TranslateObject_001.addOutputs([_Print_003]); + _IsTrue.addOutputs([_TranslateObject_001]); + _Boolean.addOutputs([_SetVariable_004, _SetVariable_003, _IsTrue, _SetVariable_005]); + _SetVariable_003.addInput(_Boolean, 0); + var _Boolean_001 = new armory.logicnode.BooleanNode(this); + _Boolean_001.addInput(new armory.logicnode.BooleanNode(this, true), 0); + _Boolean_001.addOutputs([_SetVariable_003]); + _SetVariable_003.addInput(_Boolean_001, 0); + _SetVariable_003.addOutputs([new armory.logicnode.NullNode(this)]); + var _Boolean_003 = new armory.logicnode.BooleanNode(this); + _Boolean_003.addInput(new armory.logicnode.BooleanNode(this, true), 0); + _Boolean_003.addOutputs([new armory.logicnode.BooleanNode(this, false)]); + } +} \ No newline at end of file diff --git a/Sources/arm/node/Plateforme_mvt.hx b/Sources/arm/node/Plateforme_mvt.hx index 50a858f..372e14f 100644 --- a/Sources/arm/node/Plateforme_mvt.hx +++ b/Sources/arm/node/Plateforme_mvt.hx @@ -15,14 +15,6 @@ package arm.node; } override public function add() { - var _Print_008 = new armory.logicnode.PrintNode(this); - _Print_008.addInput(new armory.logicnode.NullNode(this), 0); - _Print_008.addInput(new armory.logicnode.NullNode(this), 0); - _Print_008.addOutputs([new armory.logicnode.NullNode(this)]); - var _Print_007 = new armory.logicnode.PrintNode(this); - _Print_007.addInput(new armory.logicnode.NullNode(this), 0); - _Print_007.addInput(new armory.logicnode.NullNode(this), 0); - _Print_007.addOutputs([new armory.logicnode.NullNode(this)]); var _FunctionOutput_004 = new armory.logicnode.FunctionOutputNode(this); this.functionOutputNodes.set("_FunctionOutput_004", _FunctionOutput_004); var _Merge_005 = new armory.logicnode.MergeNode(this); @@ -101,6 +93,30 @@ package arm.node; _Merge_005.addOutputs([_FunctionOutput_004]); _FunctionOutput_004.addInput(_Merge_005, 0); _FunctionOutput_004.addInput(_Vector_012, 0); + var _SetProperty = new armory.logicnode.SetPropertyNode(this); + var _SetLocation_002 = new armory.logicnode.SetLocationNode(this); + var _OnInit_001 = new armory.logicnode.OnInitNode(this); + _OnInit_001.addOutputs([_SetLocation_002]); + _SetLocation_002.addInput(_OnInit_001, 0); + _SetLocation_002.addInput(new armory.logicnode.ObjectNode(this, ""), 0); + var _GetLocation_001 = new armory.logicnode.GetLocationNode(this); + _GetLocation_001.addInput(new armory.logicnode.ObjectNode(this, "plateforme_step4"), 0); + _GetLocation_001.addOutputs([_SetLocation_002]); + _SetLocation_002.addInput(_GetLocation_001, 0); + _SetLocation_002.addOutputs([_SetProperty]); + _SetProperty.addInput(_SetLocation_002, 0); + _SetProperty.addInput(new armory.logicnode.ObjectNode(this, ""), 0); + _SetProperty.addInput(new armory.logicnode.StringNode(this, "step"), 0); + var _Integer = new armory.logicnode.IntegerNode(this); + _Integer.addInput(new armory.logicnode.IntegerNode(this, 4), 0); + _Integer.addOutputs([_SetProperty]); + _SetProperty.addInput(_Integer, 0); + _SetProperty.addOutputs([new armory.logicnode.NullNode(this)]); + var _SendEvent_004 = new armory.logicnode.SendEventNode(this); + _SendEvent_004.addInput(new armory.logicnode.NullNode(this), 0); + _SendEvent_004.addInput(new armory.logicnode.StringNode(this, "next_step"), 0); + _SendEvent_004.addInput(new armory.logicnode.ObjectNode(this, ""), 0); + _SendEvent_004.addOutputs([new armory.logicnode.NullNode(this)]); var _FunctionOutput_003 = new armory.logicnode.FunctionOutputNode(this); this.functionOutputNodes.set("_FunctionOutput_003", _FunctionOutput_003); var _Merge_004 = new armory.logicnode.MergeNode(this); @@ -173,126 +189,19 @@ package arm.node; _Merge_004.addOutputs([_FunctionOutput_003]); _FunctionOutput_003.addInput(_Merge_004, 0); _FunctionOutput_003.addInput(_Float_006, 0); - var _ClearParent = new armory.logicnode.ClearParentNode(this); - _ClearParent.addInput(new armory.logicnode.NullNode(this), 0); - _ClearParent.addInput(new armory.logicnode.ObjectNode(this, "Joueur"), 0); - _ClearParent.addInput(new armory.logicnode.BooleanNode(this, false), 0); - _ClearParent.addOutputs([new armory.logicnode.NullNode(this)]); - var _SetParent = new armory.logicnode.SetParentNode(this); - _SetParent.addInput(new armory.logicnode.NullNode(this), 0); - _SetParent.addInput(new armory.logicnode.ObjectNode(this, "Joueur"), 0); - _SetParent.addInput(new armory.logicnode.ObjectNode(this, "platforme"), 0); - _SetParent.addOutputs([new armory.logicnode.NullNode(this)]); - var _SetLocation_010 = new armory.logicnode.SetLocationNode(this); - var _IsTrue_001 = new armory.logicnode.IsTrueNode(this); - var _OnKeyboard = new armory.logicnode.OnKeyboardNode(this); - _OnKeyboard.property0 = "Started"; - _OnKeyboard.property1 = "q"; - _OnKeyboard.addOutputs([_IsTrue_001]); - _IsTrue_001.addInput(_OnKeyboard, 0); - var _KeyboardState = new armory.logicnode.KeyboardNode(this); - _KeyboardState.property0 = "Down"; - _KeyboardState.property1 = "control"; - _KeyboardState.addOutputs([_IsTrue_001]); - _IsTrue_001.addInput(_KeyboardState, 0); - _IsTrue_001.addOutputs([_SetLocation_010]); - _SetLocation_010.addInput(_IsTrue_001, 0); - _SetLocation_010.addInput(new armory.logicnode.ObjectNode(this, "Joueur"), 0); - var _VectorMath = new armory.logicnode.VectorMathNode(this); - _VectorMath.property0 = "Add"; - var _GetLocation = new armory.logicnode.GetLocationNode(this); - _GetLocation.addInput(new armory.logicnode.ObjectNode(this, "Plateforme_box"), 0); - _GetLocation.addOutputs([_VectorMath]); - _VectorMath.addInput(_GetLocation, 0); - var _Vector = new armory.logicnode.VectorNode(this); - _Vector.addInput(new armory.logicnode.FloatNode(this, 0.0), 0); - _Vector.addInput(new armory.logicnode.FloatNode(this, 0.0), 0); - _Vector.addInput(new armory.logicnode.FloatNode(this, 1.0), 0); - _Vector.addOutputs([_VectorMath]); - _VectorMath.addInput(_Vector, 0); - _VectorMath.addOutputs([_SetLocation_010]); - _VectorMath.addOutputs([new armory.logicnode.FloatNode(this, 0.0)]); - _SetLocation_010.addInput(_VectorMath, 0); - _SetLocation_010.addOutputs([new armory.logicnode.NullNode(this)]); - var _GetContacts = new armory.logicnode.GetContactsNode(this); - _GetContacts.addInput(new armory.logicnode.ObjectNode(this, ""), 0); - _GetContacts.addOutputs([new armory.logicnode.NullNode(this)]); - var _GetContacts_001 = new armory.logicnode.GetContactsNode(this); - _GetContacts_001.addInput(new armory.logicnode.ObjectNode(this, ""), 0); - _GetContacts_001.addOutputs([new armory.logicnode.NullNode(this)]); - var _OnContact = new armory.logicnode.OnContactNode(this); - _OnContact.property0 = "Begin"; - _OnContact.addInput(new armory.logicnode.ObjectNode(this, "Joueur"), 0); - _OnContact.addInput(new armory.logicnode.ObjectNode(this, "platforme"), 0); - _OnContact.addOutputs([new armory.logicnode.NullNode(this)]); - var _OnContact_001 = new armory.logicnode.OnContactNode(this); - _OnContact_001.property0 = "End"; - _OnContact_001.addInput(new armory.logicnode.ObjectNode(this, "Joueur"), 0); - _OnContact_001.addInput(new armory.logicnode.ObjectNode(this, "platforme"), 0); - _OnContact_001.addOutputs([new armory.logicnode.NullNode(this)]); - var _OnVolumeTrigger = new armory.logicnode.OnVolumeTriggerNode(this); - _OnVolumeTrigger.property0 = "Enter"; - _OnVolumeTrigger.addInput(new armory.logicnode.ObjectNode(this, "Joueur"), 0); - _OnVolumeTrigger.addInput(new armory.logicnode.ObjectNode(this, "platforme"), 0); - _OnVolumeTrigger.addOutputs([new armory.logicnode.NullNode(this)]); - var _OnVolumeTrigger_001 = new armory.logicnode.OnVolumeTriggerNode(this); - _OnVolumeTrigger_001.property0 = "Leave"; - _OnVolumeTrigger_001.addInput(new armory.logicnode.ObjectNode(this, "Joueur"), 0); - _OnVolumeTrigger_001.addInput(new armory.logicnode.ObjectNode(this, "Plateforme_box"), 0); - _OnVolumeTrigger_001.addOutputs([new armory.logicnode.NullNode(this)]); - var _SetParent_002 = new armory.logicnode.SetParentNode(this); - _SetParent_002.addInput(new armory.logicnode.NullNode(this), 0); - _SetParent_002.addInput(new armory.logicnode.ObjectNode(this, "Joueur"), 0); - _SetParent_002.addInput(new armory.logicnode.ObjectNode(this, ""), 0); - _SetParent_002.addOutputs([new armory.logicnode.NullNode(this)]); - var _SetParent_001 = new armory.logicnode.SetParentNode(this); - _SetParent_001.addInput(new armory.logicnode.NullNode(this), 0); - _SetParent_001.addInput(new armory.logicnode.ObjectNode(this, "Joueur"), 0); - _SetParent_001.addInput(new armory.logicnode.ObjectNode(this, "Plateforme_box"), 0); - _SetParent_001.addOutputs([new armory.logicnode.NullNode(this)]); - var _SetProperty = new armory.logicnode.SetPropertyNode(this); - var _SetLocation_002 = new armory.logicnode.SetLocationNode(this); - var _OnInit_001 = new armory.logicnode.OnInitNode(this); - _OnInit_001.addOutputs([_SetLocation_002]); - _SetLocation_002.addInput(_OnInit_001, 0); - _SetLocation_002.addInput(new armory.logicnode.ObjectNode(this, ""), 0); - var _GetLocation_001 = new armory.logicnode.GetLocationNode(this); - _GetLocation_001.addInput(new armory.logicnode.ObjectNode(this, "plateforme_step4"), 0); - _GetLocation_001.addOutputs([_SetLocation_002]); - _SetLocation_002.addInput(_GetLocation_001, 0); - _SetLocation_002.addOutputs([_SetProperty]); - _SetProperty.addInput(_SetLocation_002, 0); - _SetProperty.addInput(new armory.logicnode.ObjectNode(this, ""), 0); - _SetProperty.addInput(new armory.logicnode.StringNode(this, "step"), 0); - var _Integer = new armory.logicnode.IntegerNode(this); - _Integer.addInput(new armory.logicnode.IntegerNode(this, 4), 0); - _Integer.addOutputs([_SetProperty]); - _SetProperty.addInput(_Integer, 0); - _SetProperty.addOutputs([new armory.logicnode.NullNode(this)]); - var _SendEvent_004 = new armory.logicnode.SendEventNode(this); - _SendEvent_004.addInput(new armory.logicnode.NullNode(this), 0); - _SendEvent_004.addInput(new armory.logicnode.StringNode(this, "next_step"), 0); - _SendEvent_004.addInput(new armory.logicnode.ObjectNode(this, ""), 0); - _SendEvent_004.addOutputs([new armory.logicnode.NullNode(this)]); - var _Gate = new armory.logicnode.GateNode(this); - _Gate.property0 = "Equal"; - _Gate.property1 = 9.999999747378752e-05; - _Gate.addInput(new armory.logicnode.NullNode(this), 0); - _Gate.addInput(new armory.logicnode.NullNode(this), 0); - _Gate.addInput(new armory.logicnode.NullNode(this), 0); - _Gate.addOutputs([new armory.logicnode.NullNode(this)]); - _Gate.addOutputs([new armory.logicnode.NullNode(this)]); - var _SetProperty_001 = new armory.logicnode.SetPropertyNode(this); - var _SetVariable_016 = new armory.logicnode.SetVariableNode(this); - var _OnInit_003 = new armory.logicnode.OnInitNode(this); - _OnInit_003.addOutputs([_SetVariable_016]); - _SetVariable_016.addInput(_OnInit_003, 0); - var _Vector_011 = new armory.logicnode.VectorNode(this); - _Vector_011.addInput(new armory.logicnode.FloatNode(this, 0.0), 0); - _Vector_011.addInput(new armory.logicnode.FloatNode(this, 0.0), 0); - _Vector_011.addInput(new armory.logicnode.FloatNode(this, 0.0), 0); - var _SeparateXYZ_005 = new armory.logicnode.SeparateVectorNode(this); - _SeparateXYZ_005.addInput(_Vector_011, 0); + var _SetVariable_015 = new armory.logicnode.SetVariableNode(this); + var _CallFunction_012 = new armory.logicnode.CallFunctionNode(this); + var _IsTrue_006 = new armory.logicnode.IsTrueNode(this); + var _Merge = new armory.logicnode.MergeNode(this); + var _TranslateObject_002 = new armory.logicnode.TranslateObjectNode(this); + var _Branch = new armory.logicnode.BranchNode(this); + var _TranslateObject_001 = new armory.logicnode.TranslateObjectNode(this); + var _SetVariable_011 = new armory.logicnode.SetVariableNode(this); + var _SetVariable_009 = new armory.logicnode.SetVariableNode(this); + var _CallFunction_004 = new armory.logicnode.CallFunctionNode(this); + var _SetVariable_002 = new armory.logicnode.SetVariableNode(this); + var _CallFunction_003 = new armory.logicnode.CallFunctionNode(this); + var _SetVariable_001 = new armory.logicnode.SetVariableNode(this); var _CallFunction_002 = new armory.logicnode.CallFunctionNode(this); var _OnTimer_001 = new armory.logicnode.OnTimerNode(this); _OnTimer_001.addInput(new armory.logicnode.FloatNode(this, 0.0010000000474974513), 0); @@ -300,24 +209,39 @@ package arm.node; _OnTimer_001.addOutputs([_CallFunction_002]); _CallFunction_002.addInput(_OnTimer_001, 0); var _SelfTrait_001 = new armory.logicnode.SelfTraitNode(this); - var _CallFunction_003 = new armory.logicnode.CallFunctionNode(this); - var _SetVariable_001 = new armory.logicnode.SetVariableNode(this); - _SetVariable_001.addInput(_CallFunction_002, 0); - var _Float_002 = new armory.logicnode.FloatNode(this); - _Float_002.addInput(new armory.logicnode.FloatNode(this, 0.0), 0); - var _Vector_002 = new armory.logicnode.VectorNode(this); - _Vector_002.addInput(_Float_002, 0); - var _Float_003 = new armory.logicnode.FloatNode(this); - _Float_003.addInput(new armory.logicnode.FloatNode(this, 0.0), 0); - var _SetVariable_002 = new armory.logicnode.SetVariableNode(this); - _SetVariable_002.addInput(_CallFunction_003, 0); - _SetVariable_002.addInput(_Float_003, 0); - _SetVariable_002.addInput(_CallFunction_003, 1); - var _CallFunction_004 = new armory.logicnode.CallFunctionNode(this); - _CallFunction_004.addInput(_SetVariable_002, 0); - _CallFunction_004.addInput(_SelfTrait_001, 0); - _CallFunction_004.addInput(new armory.logicnode.StringNode(this, "pas"), 0); - _CallFunction_004.addInput(_SeparateXYZ_005, 2); + _SelfTrait_001.addOutputs([_CallFunction_002, _CallFunction_003, _CallFunction_004]); + _CallFunction_002.addInput(_SelfTrait_001, 0); + _CallFunction_002.addInput(new armory.logicnode.StringNode(this, "pas"), 0); + var _SeparateXYZ_005 = new armory.logicnode.SeparateVectorNode(this); + var _Vector_011 = new armory.logicnode.VectorNode(this); + _Vector_011.addInput(new armory.logicnode.FloatNode(this, 0.0), 0); + _Vector_011.addInput(new armory.logicnode.FloatNode(this, 0.0), 0); + _Vector_011.addInput(new armory.logicnode.FloatNode(this, 0.0), 0); + var _SetVariable_016 = new armory.logicnode.SetVariableNode(this); + var _OnInit_003 = new armory.logicnode.OnInitNode(this); + _OnInit_003.addOutputs([_SetVariable_016]); + _SetVariable_016.addInput(_OnInit_003, 0); + _SetVariable_016.addInput(_Vector_011, 0); + var _GetLocation_013 = new armory.logicnode.GetLocationNode(this); + _GetLocation_013.addInput(new armory.logicnode.ObjectNode(this, "plateforme_step1"), 0); + _GetLocation_013.addOutputs([_SetVariable_016]); + _SetVariable_016.addInput(_GetLocation_013, 0); + var _SetProperty_001 = new armory.logicnode.SetPropertyNode(this); + _SetProperty_001.addInput(_SetVariable_016, 0); + _SetProperty_001.addInput(new armory.logicnode.ObjectNode(this, ""), 0); + _SetProperty_001.addInput(new armory.logicnode.StringNode(this, "step"), 0); + var _Integer_005 = new armory.logicnode.IntegerNode(this); + _Integer_005.addInput(new armory.logicnode.IntegerNode(this, 1), 0); + _Integer_005.addOutputs([_SetProperty_001]); + _SetProperty_001.addInput(_Integer_005, 0); + _SetProperty_001.addOutputs([new armory.logicnode.NullNode(this)]); + _SetVariable_016.addOutputs([_SetProperty_001]); + _Vector_011.addOutputs([_SeparateXYZ_005, _SetVariable_016, _SetVariable_015]); + _SeparateXYZ_005.addInput(_Vector_011, 0); + _SeparateXYZ_005.addOutputs([_CallFunction_002]); + _SeparateXYZ_005.addOutputs([_CallFunction_003]); + _SeparateXYZ_005.addOutputs([_CallFunction_004]); + _CallFunction_002.addInput(_SeparateXYZ_005, 0); var _SeparateXYZ_006 = new armory.logicnode.SeparateVectorNode(this); var _GetLocation_007 = new armory.logicnode.GetLocationNode(this); _GetLocation_007.addInput(new armory.logicnode.ObjectNode(this, ""), 0); @@ -326,103 +250,21 @@ package arm.node; _SeparateXYZ_006.addOutputs([_CallFunction_002]); _SeparateXYZ_006.addOutputs([_CallFunction_003]); _SeparateXYZ_006.addOutputs([_CallFunction_004]); - _CallFunction_004.addInput(_SeparateXYZ_006, 2); - var _SetVariable_009 = new armory.logicnode.SetVariableNode(this); - _SetVariable_009.addInput(_CallFunction_004, 0); + _CallFunction_002.addInput(_SeparateXYZ_006, 0); + _CallFunction_002.addOutputs([_SetVariable_001]); + _CallFunction_002.addOutputs([_SetVariable_001]); + _SetVariable_001.addInput(_CallFunction_002, 0); + var _Float_002 = new armory.logicnode.FloatNode(this); + _Float_002.addInput(new armory.logicnode.FloatNode(this, 0.0), 0); + var _Vector_002 = new armory.logicnode.VectorNode(this); + _Vector_002.addInput(_Float_002, 0); + var _Float_003 = new armory.logicnode.FloatNode(this); + _Float_003.addInput(new armory.logicnode.FloatNode(this, 0.0), 0); + _Float_003.addOutputs([_SetVariable_002, _Vector_002]); + _Vector_002.addInput(_Float_003, 0); var _Float_004 = new armory.logicnode.FloatNode(this); _Float_004.addInput(new armory.logicnode.FloatNode(this, 0.0), 0); _Float_004.addOutputs([_SetVariable_009, _Vector_002]); - _SetVariable_009.addInput(_Float_004, 0); - _SetVariable_009.addInput(_CallFunction_004, 1); - var _SetVariable_011 = new armory.logicnode.SetVariableNode(this); - _SetVariable_011.addInput(_SetVariable_009, 0); - var _Vector_010 = new armory.logicnode.VectorNode(this); - _Vector_010.addInput(new armory.logicnode.FloatNode(this, 1.0), 0); - _Vector_010.addInput(new armory.logicnode.FloatNode(this, 1.0), 0); - _Vector_010.addInput(new armory.logicnode.FloatNode(this, 1.0), 0); - var _TranslateObject_001 = new armory.logicnode.TranslateObjectNode(this); - _TranslateObject_001.addInput(_SetVariable_011, 0); - _TranslateObject_001.addInput(new armory.logicnode.ObjectNode(this, ""), 0); - _TranslateObject_001.addInput(_Vector_010, 0); - var _Branch = new armory.logicnode.BranchNode(this); - _Branch.addInput(_TranslateObject_001, 0); - var _HasContact = new armory.logicnode.HasContactNode(this); - _HasContact.addInput(new armory.logicnode.ObjectNode(this, "Joueur"), 0); - _HasContact.addInput(new armory.logicnode.ObjectNode(this, "Plateforme_box"), 0); - _HasContact.addOutputs([_Branch]); - _Branch.addInput(_HasContact, 0); - var _TranslateObject_002 = new armory.logicnode.TranslateObjectNode(this); - _TranslateObject_002.addInput(_Branch, 0); - _TranslateObject_002.addInput(new armory.logicnode.ObjectNode(this, "Joueur"), 0); - _TranslateObject_002.addInput(_Vector_010, 0); - var _Merge = new armory.logicnode.MergeNode(this); - _Merge.addInput(_TranslateObject_002, 0); - _Merge.addInput(_Branch, 1); - var _IsTrue_006 = new armory.logicnode.IsTrueNode(this); - _IsTrue_006.addInput(_Merge, 0); - var _Compare_004 = new armory.logicnode.CompareNode(this); - _Compare_004.property0 = "And"; - _Compare_004.property1 = 9.999999747378752e-05; - var _Compare_001 = new armory.logicnode.CompareNode(this); - _Compare_001.property0 = "Equal"; - _Compare_001.property1 = 9.999999747378752e-05; - var _SeparateXYZ_007 = new armory.logicnode.SeparateVectorNode(this); - _SeparateXYZ_007.addInput(_Vector_010, 0); - _SeparateXYZ_007.addOutputs([_Compare_001]); - var _Compare_002 = new armory.logicnode.CompareNode(this); - _Compare_002.property0 = "Equal"; - _Compare_002.property1 = 9.999999747378752e-05; - _Compare_002.addInput(_SeparateXYZ_007, 1); - var _Float_005 = new armory.logicnode.FloatNode(this); - _Float_005.addInput(new armory.logicnode.FloatNode(this, 0.0), 0); - var _Compare_003 = new armory.logicnode.CompareNode(this); - _Compare_003.property0 = "Equal"; - _Compare_003.property1 = 9.999999747378752e-05; - _Compare_003.addInput(_SeparateXYZ_007, 2); - _Compare_003.addInput(_Float_005, 0); - _Compare_003.addOutputs([_Compare_004]); - _Float_005.addOutputs([_Compare_001, _Compare_002, _Compare_003]); - _Compare_002.addInput(_Float_005, 0); - _Compare_002.addOutputs([_Compare_004]); - _SeparateXYZ_007.addOutputs([_Compare_002]); - _SeparateXYZ_007.addOutputs([_Compare_003]); - _Compare_001.addInput(_SeparateXYZ_007, 0); - _Compare_001.addInput(_Float_005, 0); - _Compare_001.addOutputs([_Compare_004]); - _Compare_004.addInput(_Compare_001, 0); - _Compare_004.addInput(_Compare_002, 0); - _Compare_004.addInput(_Compare_003, 0); - _Compare_004.addOutputs([_IsTrue_006]); - _IsTrue_006.addInput(_Compare_004, 0); - var _CallFunction_012 = new armory.logicnode.CallFunctionNode(this); - _CallFunction_012.addInput(_IsTrue_006, 0); - var _SelfTrait_003 = new armory.logicnode.SelfTraitNode(this); - _SelfTrait_003.addOutputs([_CallFunction_012]); - _CallFunction_012.addInput(_SelfTrait_003, 0); - _CallFunction_012.addInput(new armory.logicnode.StringNode(this, "nextstep"), 0); - var _SetVariable_015 = new armory.logicnode.SetVariableNode(this); - _SetVariable_015.addInput(_CallFunction_012, 0); - _SetVariable_015.addInput(_Vector_011, 0); - _SetVariable_015.addInput(_CallFunction_012, 1); - _SetVariable_015.addOutputs([new armory.logicnode.NullNode(this)]); - _CallFunction_012.addOutputs([_SetVariable_015]); - _CallFunction_012.addOutputs([_SetVariable_015]); - _IsTrue_006.addOutputs([_CallFunction_012]); - _Merge.addOutputs([_IsTrue_006]); - _TranslateObject_002.addOutputs([_Merge]); - _Branch.addOutputs([_TranslateObject_002]); - _Branch.addOutputs([_Merge]); - _TranslateObject_001.addOutputs([_Branch]); - _Vector_010.addOutputs([_SetVariable_011, _TranslateObject_001, _SeparateXYZ_007, _TranslateObject_002]); - _SetVariable_011.addInput(_Vector_010, 0); - _SetVariable_011.addInput(_Vector_002, 0); - _SetVariable_011.addOutputs([_TranslateObject_001]); - _SetVariable_009.addOutputs([_SetVariable_011]); - _CallFunction_004.addOutputs([_SetVariable_009]); - _CallFunction_004.addOutputs([_SetVariable_009]); - _SetVariable_002.addOutputs([_CallFunction_004]); - _Float_003.addOutputs([_SetVariable_002, _Vector_002]); - _Vector_002.addInput(_Float_003, 0); _Vector_002.addInput(_Float_004, 0); _Vector_002.addOutputs([_SetVariable_011]); _Float_002.addOutputs([_SetVariable_001, _Vector_002]); @@ -436,37 +278,96 @@ package arm.node; _CallFunction_003.addInput(_SeparateXYZ_006, 1); _CallFunction_003.addOutputs([_SetVariable_002]); _CallFunction_003.addOutputs([_SetVariable_002]); - _SelfTrait_001.addOutputs([_CallFunction_002, _CallFunction_003, _CallFunction_004]); - _CallFunction_002.addInput(_SelfTrait_001, 0); - _CallFunction_002.addInput(new armory.logicnode.StringNode(this, "pas"), 0); - _CallFunction_002.addInput(_SeparateXYZ_005, 0); - _CallFunction_002.addInput(_SeparateXYZ_006, 0); - _CallFunction_002.addOutputs([_SetVariable_001]); - _CallFunction_002.addOutputs([_SetVariable_001]); - _SeparateXYZ_005.addOutputs([_CallFunction_002]); - _SeparateXYZ_005.addOutputs([_CallFunction_003]); - _SeparateXYZ_005.addOutputs([_CallFunction_004]); - _Vector_011.addOutputs([_SeparateXYZ_005, _SetVariable_016, _SetVariable_015]); - _SetVariable_016.addInput(_Vector_011, 0); - var _GetLocation_013 = new armory.logicnode.GetLocationNode(this); - _GetLocation_013.addInput(new armory.logicnode.ObjectNode(this, "plateforme_step1"), 0); - _GetLocation_013.addOutputs([_SetVariable_016]); - _SetVariable_016.addInput(_GetLocation_013, 0); - _SetVariable_016.addOutputs([_SetProperty_001]); - _SetProperty_001.addInput(_SetVariable_016, 0); - _SetProperty_001.addInput(new armory.logicnode.ObjectNode(this, ""), 0); - _SetProperty_001.addInput(new armory.logicnode.StringNode(this, "step"), 0); - var _Integer_005 = new armory.logicnode.IntegerNode(this); - _Integer_005.addInput(new armory.logicnode.IntegerNode(this, 1), 0); - _Integer_005.addOutputs([_SetProperty_001]); - _SetProperty_001.addInput(_Integer_005, 0); - _SetProperty_001.addOutputs([new armory.logicnode.NullNode(this)]); - var _Print_005 = new armory.logicnode.PrintNode(this); - _Print_005.name = "Print_005"; - _Print_005.watch(true); - _Print_005.addInput(new armory.logicnode.NullNode(this), 0); - _Print_005.addInput(new armory.logicnode.NullNode(this), 0); - _Print_005.addOutputs([new armory.logicnode.NullNode(this)]); + _SetVariable_002.addInput(_CallFunction_003, 0); + _SetVariable_002.addInput(_Float_003, 0); + _SetVariable_002.addInput(_CallFunction_003, 1); + _SetVariable_002.addOutputs([_CallFunction_004]); + _CallFunction_004.addInput(_SetVariable_002, 0); + _CallFunction_004.addInput(_SelfTrait_001, 0); + _CallFunction_004.addInput(new armory.logicnode.StringNode(this, "pas"), 0); + _CallFunction_004.addInput(_SeparateXYZ_005, 2); + _CallFunction_004.addInput(_SeparateXYZ_006, 2); + _CallFunction_004.addOutputs([_SetVariable_009]); + _CallFunction_004.addOutputs([_SetVariable_009]); + _SetVariable_009.addInput(_CallFunction_004, 0); + _SetVariable_009.addInput(_Float_004, 0); + _SetVariable_009.addInput(_CallFunction_004, 1); + _SetVariable_009.addOutputs([_SetVariable_011]); + _SetVariable_011.addInput(_SetVariable_009, 0); + var _Vector_010 = new armory.logicnode.VectorNode(this); + _Vector_010.addInput(new armory.logicnode.FloatNode(this, 1.0), 0); + _Vector_010.addInput(new armory.logicnode.FloatNode(this, 1.0), 0); + _Vector_010.addInput(new armory.logicnode.FloatNode(this, 1.0), 0); + var _SeparateXYZ_007 = new armory.logicnode.SeparateVectorNode(this); + _SeparateXYZ_007.addInput(_Vector_010, 0); + var _Compare_001 = new armory.logicnode.CompareNode(this); + _Compare_001.property0 = "Equal"; + _Compare_001.property1 = 9.999999747378752e-05; + _Compare_001.addInput(_SeparateXYZ_007, 0); + var _Float_005 = new armory.logicnode.FloatNode(this); + _Float_005.addInput(new armory.logicnode.FloatNode(this, 0.0), 0); + var _Compare_002 = new armory.logicnode.CompareNode(this); + _Compare_002.property0 = "Equal"; + _Compare_002.property1 = 9.999999747378752e-05; + _Compare_002.addInput(_SeparateXYZ_007, 1); + _Compare_002.addInput(_Float_005, 0); + var _Compare_004 = new armory.logicnode.CompareNode(this); + _Compare_004.property0 = "And"; + _Compare_004.property1 = 9.999999747378752e-05; + _Compare_004.addInput(_Compare_001, 0); + _Compare_004.addInput(_Compare_002, 0); + var _Compare_003 = new armory.logicnode.CompareNode(this); + _Compare_003.property0 = "Equal"; + _Compare_003.property1 = 9.999999747378752e-05; + _Compare_003.addInput(_SeparateXYZ_007, 2); + _Compare_003.addInput(_Float_005, 0); + _Compare_003.addOutputs([_Compare_004]); + _Compare_004.addInput(_Compare_003, 0); + _Compare_004.addOutputs([_IsTrue_006]); + _Compare_002.addOutputs([_Compare_004]); + _Float_005.addOutputs([_Compare_001, _Compare_002, _Compare_003]); + _Compare_001.addInput(_Float_005, 0); + _Compare_001.addOutputs([_Compare_004]); + _SeparateXYZ_007.addOutputs([_Compare_001]); + _SeparateXYZ_007.addOutputs([_Compare_002]); + _SeparateXYZ_007.addOutputs([_Compare_003]); + _Vector_010.addOutputs([_SetVariable_011, _TranslateObject_001, _SeparateXYZ_007, _TranslateObject_002]); + _SetVariable_011.addInput(_Vector_010, 0); + _SetVariable_011.addInput(_Vector_002, 0); + _SetVariable_011.addOutputs([_TranslateObject_001]); + _TranslateObject_001.addInput(_SetVariable_011, 0); + _TranslateObject_001.addInput(new armory.logicnode.ObjectNode(this, ""), 0); + _TranslateObject_001.addInput(_Vector_010, 0); + _TranslateObject_001.addOutputs([_Branch]); + _Branch.addInput(_TranslateObject_001, 0); + var _HasContact = new armory.logicnode.HasContactNode(this); + _HasContact.addInput(new armory.logicnode.ObjectNode(this, "Joueur"), 0); + _HasContact.addInput(new armory.logicnode.ObjectNode(this, "Plateforme_box"), 0); + _HasContact.addOutputs([_Branch]); + _Branch.addInput(_HasContact, 0); + _Branch.addOutputs([_TranslateObject_002]); + _Branch.addOutputs([_Merge]); + _TranslateObject_002.addInput(_Branch, 0); + _TranslateObject_002.addInput(new armory.logicnode.ObjectNode(this, "Joueur"), 0); + _TranslateObject_002.addInput(_Vector_010, 0); + _TranslateObject_002.addOutputs([_Merge]); + _Merge.addInput(_TranslateObject_002, 0); + _Merge.addInput(_Branch, 1); + _Merge.addOutputs([_IsTrue_006]); + _IsTrue_006.addInput(_Merge, 0); + _IsTrue_006.addInput(_Compare_004, 0); + _IsTrue_006.addOutputs([_CallFunction_012]); + _CallFunction_012.addInput(_IsTrue_006, 0); + var _SelfTrait_003 = new armory.logicnode.SelfTraitNode(this); + _SelfTrait_003.addOutputs([_CallFunction_012]); + _CallFunction_012.addInput(_SelfTrait_003, 0); + _CallFunction_012.addInput(new armory.logicnode.StringNode(this, "nextstep"), 0); + _CallFunction_012.addOutputs([_SetVariable_015]); + _CallFunction_012.addOutputs([_SetVariable_015]); + _SetVariable_015.addInput(_CallFunction_012, 0); + _SetVariable_015.addInput(_Vector_011, 0); + _SetVariable_015.addInput(_CallFunction_012, 1); + _SetVariable_015.addOutputs([new armory.logicnode.NullNode(this)]); } public function nextstep() { diff --git a/ecureuil-141.blend b/ecureuil-141.blend new file mode 100644 index 0000000..0da6324 Binary files /dev/null and b/ecureuil-141.blend differ