mirror of
https://forge.apps.education.fr/phroy/frankie-on-platform.git
synced 2024-01-27 11:32:04 +01:00
Platform bugfix
This commit is contained in:
parent
5258a0900c
commit
c4f2764839
@ -17,134 +17,113 @@ import iron.system.Tween;
|
||||
|
||||
class Intro_cam extends iron.Trait {
|
||||
|
||||
public function new() {
|
||||
super();
|
||||
public function new() {
|
||||
super();
|
||||
|
||||
// Start
|
||||
var go= false;
|
||||
// Start
|
||||
var go= false;
|
||||
|
||||
// Positions
|
||||
var loc1 = new Vec4 (0.7 ,-7.8, 2);
|
||||
var loc2 = new Vec4 (6.3 ,-15.7, 3);
|
||||
// Suiveur
|
||||
var loc_init = new Vec4 (0 , 0, 0);
|
||||
var loc_to = new Vec4 (0 , 0, 0);
|
||||
var loc_from = new Vec4 (0 , 0, 0);
|
||||
var deltaxyz = new Vec4 (0 , 0, 0);
|
||||
var deltax = 0.0;
|
||||
var deltay = 0.0;
|
||||
var deltaz = 0.0;
|
||||
var position = 0;
|
||||
|
||||
// Tempo
|
||||
var duration_cycle=0.01;
|
||||
var duration=0.0;
|
||||
|
||||
// Positions (repère objet de la courbe)
|
||||
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)
|
||||
];
|
||||
|
||||
// Cible camera
|
||||
// var target = new Vec4 (0 , 0, 0);
|
||||
|
||||
//
|
||||
// notifyOnInit
|
||||
//
|
||||
|
||||
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;
|
||||
}
|
||||
notifyOnInit(function() {
|
||||
|
||||
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;
|
||||
}
|
||||
loc_init = object.transform.loc;
|
||||
duration=duration_cycle;
|
||||
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;
|
||||
}}
|
||||
});
|
||||
//
|
||||
// notifyOnUpdate
|
||||
//
|
||||
|
||||
notifyOnUpdate(function() {
|
||||
|
||||
// Point 1
|
||||
var mouse = Input.getMouse();
|
||||
if (mouse.started()) {
|
||||
position=1;
|
||||
loc_from = object.transform.loc;
|
||||
deltax = (delta[position].x-delta[position-1].x);
|
||||
deltay = (delta[position].y-delta[position-1].y);
|
||||
deltaz = (delta[position].z-delta[position-1].z);
|
||||
deltaxyz.set(deltax, deltay, deltaz);
|
||||
loc_to.addvecs(loc_from,deltaxyz);
|
||||
|
||||
trace("position "+Std.string(position));
|
||||
trace("loc_from "+Std.string(loc_from));
|
||||
trace("loc_to "+Std.string(loc_to));
|
||||
trace("deltaxyz "+Std.string(deltaxyz));
|
||||
trace("Delta "+Std.string(deltax)+" " +Std.string(deltay)+" " +Std.string(deltaz));
|
||||
go= true;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
// 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
|
||||
// Déplacement
|
||||
if (go) {
|
||||
duration -= iron.system.Time.delta;
|
||||
if (duration <= 0.0) {
|
||||
object.transform.translate(deltax/100, deltay/100, deltaz/100); // x, y, z
|
||||
duration=duration_cycle;
|
||||
|
||||
// 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;
|
||||
// Arrivée ?
|
||||
if (loc_to.x - object.transform.loc.x < 0.01 && loc_to.y - object.transform.loc.y < 0.01 && loc_to.z - object.transform.loc.z < 0.01) {
|
||||
object.transform.translate(loc_to.x - object.transform.loc.x, loc_to.y - object.transform.loc.y, loc_to.z - object.transform.loc.z);
|
||||
|
||||
// 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() {
|
||||
// });
|
||||
// Point ++
|
||||
if (position<13) {
|
||||
position++;
|
||||
loc_from = object.transform.loc;
|
||||
deltax = (delta[position].x-delta[position-1].x);
|
||||
deltay = (delta[position].y-delta[position-1].y);
|
||||
deltaz = (delta[position].z-delta[position-1].z);
|
||||
deltaxyz.set(deltax, deltay, deltaz);
|
||||
loc_to.addvecs(loc_from,deltaxyz);
|
||||
trace("position "+Std.string(position));
|
||||
trace("loc_from "+Std.string(loc_from));
|
||||
trace("loc_to "+Std.string(loc_to));
|
||||
trace("deltaxyz "+Std.string(deltaxyz));
|
||||
trace("Delta "+Std.string(deltax)+" " +Std.string(deltay)+" " +Std.string(deltaz));
|
||||
go= true;
|
||||
}
|
||||
else go= false;
|
||||
}
|
||||
}}
|
||||
});
|
||||
}}
|
||||
|
@ -15,126 +15,296 @@ package arm.node;
|
||||
}
|
||||
|
||||
override public function add() {
|
||||
var _FunctionOutput = new armory.logicnode.FunctionOutputNode(this);
|
||||
this.functionOutputNodes.set("_FunctionOutput", _FunctionOutput);
|
||||
var _Function = new armory.logicnode.FunctionNode(this);
|
||||
this.functionNodes.set("_Function", _Function);
|
||||
_Function.addOutputs([_FunctionOutput]);
|
||||
_Function.addOutputs([new armory.logicnode.NullNode(this)]);
|
||||
_Function.addOutputs([new armory.logicnode.NullNode(this)]);
|
||||
_FunctionOutput.addInput(_Function, 0);
|
||||
var _Vector_002 = new armory.logicnode.VectorNode(this);
|
||||
var _Random_Float_ = new armory.logicnode.RandomFloatNode(this);
|
||||
var _SeparateXYZ_001 = new armory.logicnode.SeparateVectorNode(this);
|
||||
var _Vector_001 = new armory.logicnode.VectorNode(this);
|
||||
_Vector_001.addInput(new armory.logicnode.FloatNode(this, -15.0), 0);
|
||||
_Vector_001.addInput(new armory.logicnode.FloatNode(this, -10.0), 0);
|
||||
_Vector_001.addInput(new armory.logicnode.FloatNode(this, -7.0), 0);
|
||||
var _VectorMath_002 = new armory.logicnode.VectorMathNode(this);
|
||||
_VectorMath_002.property0 = "Add";
|
||||
_VectorMath_002.addInput(_Vector_001, 0);
|
||||
var _Vector_004 = new armory.logicnode.VectorNode(this);
|
||||
_Vector_004.addInput(new armory.logicnode.FloatNode(this, 19.5), 0);
|
||||
_Vector_004.addInput(new armory.logicnode.FloatNode(this, 150.0), 0);
|
||||
_Vector_004.addInput(new armory.logicnode.FloatNode(this, 44.0), 0);
|
||||
_Vector_004.addOutputs([_VectorMath_002]);
|
||||
_VectorMath_002.addInput(_Vector_004, 0);
|
||||
var _SeparateXYZ = new armory.logicnode.SeparateVectorNode(this);
|
||||
_SeparateXYZ.addInput(_VectorMath_002, 0);
|
||||
_SeparateXYZ.addOutputs([_Random_Float_]);
|
||||
var _Random_Float__001 = new armory.logicnode.RandomFloatNode(this);
|
||||
_Random_Float__001.addInput(_SeparateXYZ_001, 1);
|
||||
_Random_Float__001.addInput(_SeparateXYZ, 1);
|
||||
_Random_Float__001.addOutputs([_Vector_002]);
|
||||
_SeparateXYZ.addOutputs([_Random_Float__001]);
|
||||
_SeparateXYZ.addOutputs([new armory.logicnode.FloatNode(this, 0.0)]);
|
||||
_VectorMath_002.addOutputs([_SeparateXYZ]);
|
||||
_VectorMath_002.addOutputs([new armory.logicnode.FloatNode(this, 0.0)]);
|
||||
_Vector_001.addOutputs([_SeparateXYZ_001, _VectorMath_002]);
|
||||
_SeparateXYZ_001.addInput(_Vector_001, 0);
|
||||
_SeparateXYZ_001.addOutputs([_Random_Float_]);
|
||||
_SeparateXYZ_001.addOutputs([_Random_Float__001]);
|
||||
_SeparateXYZ_001.addOutputs([new armory.logicnode.FloatNode(this, 0.0)]);
|
||||
_Random_Float_.addInput(_SeparateXYZ_001, 0);
|
||||
_Random_Float_.addInput(_SeparateXYZ, 0);
|
||||
_Random_Float_.addOutputs([_Vector_002]);
|
||||
_Vector_002.addInput(_Random_Float_, 0);
|
||||
_Vector_002.addInput(_Random_Float__001, 0);
|
||||
_Vector_002.addInput(new armory.logicnode.FloatNode(this, 0.0), 0);
|
||||
_Vector_002.addOutputs([_FunctionOutput]);
|
||||
_FunctionOutput.addInput(_Vector_002, 0);
|
||||
var _FunctionOutput_002 = new armory.logicnode.FunctionOutputNode(this);
|
||||
this.functionOutputNodes.set("_FunctionOutput_002", _FunctionOutput_002);
|
||||
var _CallFunction_013 = new armory.logicnode.CallFunctionNode(this);
|
||||
var _ArrayLoop = new armory.logicnode.ArrayLoopNode(this);
|
||||
var _Function_002 = new armory.logicnode.FunctionNode(this);
|
||||
this.functionNodes.set("_Function_002", _Function_002);
|
||||
_Function_002.addOutputs([_ArrayLoop]);
|
||||
_Function_002.addOutputs([_ArrayLoop]);
|
||||
var _ArrayGet = new armory.logicnode.ArrayGetNode(this);
|
||||
_ArrayGet.addInput(_Function_002, 2);
|
||||
var _Math_003 = new armory.logicnode.MathNode(this);
|
||||
_Math_003.property0 = "Add";
|
||||
_Math_003.property1 = "false";
|
||||
var _Integer_004 = new armory.logicnode.IntegerNode(this);
|
||||
_Integer_004.addInput(new armory.logicnode.IntegerNode(this, -2), 0);
|
||||
var _SetVariable_002 = new armory.logicnode.SetVariableNode(this);
|
||||
_SetVariable_002.addInput(_ArrayLoop, 0);
|
||||
_SetVariable_002.addInput(_Integer_004, 0);
|
||||
_SetVariable_002.addInput(_Math_003, 0);
|
||||
_SetVariable_002.addOutputs([new armory.logicnode.NullNode(this)]);
|
||||
var _SetVariable_003 = new armory.logicnode.SetVariableNode(this);
|
||||
_SetVariable_003.addInput(_ArrayLoop, 2);
|
||||
_SetVariable_003.addInput(_Integer_004, 0);
|
||||
var _Integer_005 = new armory.logicnode.IntegerNode(this);
|
||||
_Integer_005.addInput(new armory.logicnode.IntegerNode(this, -2), 0);
|
||||
_Integer_005.addOutputs([_SetVariable_003]);
|
||||
_SetVariable_003.addInput(_Integer_005, 0);
|
||||
_SetVariable_003.addOutputs([new armory.logicnode.NullNode(this)]);
|
||||
_Integer_004.addOutputs([_Math_003, _SetVariable_002, _SetVariable_003]);
|
||||
_Math_003.addInput(_Integer_004, 0);
|
||||
_Math_003.addInput(new armory.logicnode.FloatNode(this, 1.0), 0);
|
||||
var _ArrayGet_001 = new armory.logicnode.ArrayGetNode(this);
|
||||
_ArrayGet_001.addInput(_Function_002, 3);
|
||||
_ArrayGet_001.addInput(_Math_003, 0);
|
||||
_ArrayGet_001.addOutputs([_CallFunction_013]);
|
||||
_Math_003.addOutputs([_SetVariable_002, _ArrayGet, _ArrayGet_001]);
|
||||
_ArrayGet.addInput(_Math_003, 0);
|
||||
var _Math_002 = new armory.logicnode.MathNode(this);
|
||||
_Math_002.property0 = "Multiply";
|
||||
_Math_002.property1 = "false";
|
||||
_Math_002.addInput(_ArrayGet, 0);
|
||||
_Math_002.addInput(_Function_002, 4);
|
||||
_Math_002.addOutputs([_CallFunction_013]);
|
||||
_ArrayGet.addOutputs([_Math_002]);
|
||||
_Function_002.addOutputs([_ArrayGet]);
|
||||
_Function_002.addOutputs([_ArrayGet_001]);
|
||||
_Function_002.addOutputs([_Math_002]);
|
||||
_Function_002.addOutputs([_CallFunction_013]);
|
||||
_Function_002.addOutputs([_CallFunction_013]);
|
||||
_ArrayLoop.addInput(_Function_002, 0);
|
||||
_ArrayLoop.addInput(_Function_002, 1);
|
||||
_ArrayLoop.addOutputs([_CallFunction_013, _SetVariable_002]);
|
||||
_ArrayLoop.addOutputs([_CallFunction_013]);
|
||||
_ArrayLoop.addOutputs([_SetVariable_003]);
|
||||
_CallFunction_013.addInput(_ArrayLoop, 0);
|
||||
var _SelfTrait_004 = new armory.logicnode.SelfTraitNode(this);
|
||||
_SelfTrait_004.addOutputs([_CallFunction_013]);
|
||||
_CallFunction_013.addInput(_SelfTrait_004, 0);
|
||||
_CallFunction_013.addInput(new armory.logicnode.StringNode(this, "Ajout_elements"), 0);
|
||||
_CallFunction_013.addInput(_ArrayLoop, 1);
|
||||
_CallFunction_013.addInput(_Math_002, 0);
|
||||
_CallFunction_013.addInput(_ArrayGet_001, 0);
|
||||
_CallFunction_013.addInput(new armory.logicnode.NullNode(this), 0);
|
||||
_CallFunction_013.addInput(_Function_002, 5);
|
||||
_CallFunction_013.addInput(_Function_002, 6);
|
||||
_CallFunction_013.addOutputs([_FunctionOutput_002]);
|
||||
_CallFunction_013.addOutputs([new armory.logicnode.NullNode(this)]);
|
||||
_FunctionOutput_002.addInput(_CallFunction_013, 0);
|
||||
_FunctionOutput_002.addInput(new armory.logicnode.NullNode(this), 0);
|
||||
var _Float_003 = new armory.logicnode.FloatNode(this);
|
||||
_Float_003.addInput(new armory.logicnode.FloatNode(this, 30.0), 0);
|
||||
_Float_003.addOutputs([new armory.logicnode.FloatNode(this, 0.0)]);
|
||||
var _Vector = new armory.logicnode.VectorNode(this);
|
||||
_Vector.addInput(new armory.logicnode.FloatNode(this, -12.0), 0);
|
||||
_Vector.addInput(new armory.logicnode.FloatNode(this, -10.0), 0);
|
||||
_Vector.addInput(new armory.logicnode.FloatNode(this, 0.0), 0);
|
||||
_Vector.addOutputs([new armory.logicnode.VectorNode(this, 0.0, 0.0, 0.0)]);
|
||||
var _Vector_013 = new armory.logicnode.VectorNode(this);
|
||||
_Vector_013.addInput(new armory.logicnode.FloatNode(this, 1.0), 0);
|
||||
_Vector_013.addInput(new armory.logicnode.FloatNode(this, 140.0), 0);
|
||||
_Vector_013.addInput(new armory.logicnode.FloatNode(this, 0.0), 0);
|
||||
_Vector_013.addOutputs([new armory.logicnode.VectorNode(this, 0.0, 0.0, 0.0)]);
|
||||
var _Vector_012 = new armory.logicnode.VectorNode(this);
|
||||
_Vector_012.addInput(new armory.logicnode.FloatNode(this, -7.0), 0);
|
||||
_Vector_012.addInput(new armory.logicnode.FloatNode(this, 67.0), 0);
|
||||
_Vector_012.addInput(new armory.logicnode.FloatNode(this, 0.0), 0);
|
||||
_Vector_012.addOutputs([new armory.logicnode.VectorNode(this, 0.0, 0.0, 0.0)]);
|
||||
var _Vector_015 = new armory.logicnode.VectorNode(this);
|
||||
_Vector_015.addInput(new armory.logicnode.FloatNode(this, -14.799999237060547), 0);
|
||||
_Vector_015.addInput(new armory.logicnode.FloatNode(this, 70.0), 0);
|
||||
_Vector_015.addInput(new armory.logicnode.FloatNode(this, 0.0), 0);
|
||||
_Vector_015.addOutputs([new armory.logicnode.VectorNode(this, 0.0, 0.0, 0.0)]);
|
||||
var _Vector_014 = new armory.logicnode.VectorNode(this);
|
||||
_Vector_014.addInput(new armory.logicnode.FloatNode(this, 5.0), 0);
|
||||
_Vector_014.addInput(new armory.logicnode.FloatNode(this, 141.0), 0);
|
||||
_Vector_014.addInput(new armory.logicnode.FloatNode(this, 0.0), 0);
|
||||
_Vector_014.addOutputs([new armory.logicnode.VectorNode(this, 0.0, 0.0, 0.0)]);
|
||||
var _Vector_003 = new armory.logicnode.VectorNode(this);
|
||||
_Vector_003.addInput(new armory.logicnode.FloatNode(this, 4.5), 0);
|
||||
_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 _CallFunction_016 = new armory.logicnode.CallFunctionNode(this);
|
||||
var _CallFunction_015 = new armory.logicnode.CallFunctionNode(this);
|
||||
var _CallFunction_014 = new armory.logicnode.CallFunctionNode(this);
|
||||
var _OnInit_001 = new armory.logicnode.OnInitNode(this);
|
||||
_OnInit_001.addOutputs([_CallFunction_014]);
|
||||
_CallFunction_014.addInput(_OnInit_001, 0);
|
||||
var _SelfTrait_005 = new armory.logicnode.SelfTraitNode(this);
|
||||
_SelfTrait_005.addOutputs([_CallFunction_014, _CallFunction_015, _CallFunction_016]);
|
||||
_CallFunction_014.addInput(_SelfTrait_005, 0);
|
||||
_CallFunction_014.addInput(new armory.logicnode.StringNode(this, "Ajout_objet"), 0);
|
||||
var _Array_Object_ = new armory.logicnode.ArrayObjectNode(this);
|
||||
_Array_Object_.addInput(new armory.logicnode.ObjectNode(this, "Champignon_ brun1"), 0);
|
||||
_Array_Object_.addInput(new armory.logicnode.ObjectNode(this, "Champignon_ brun2"), 0);
|
||||
_Array_Object_.addInput(new armory.logicnode.ObjectNode(this, "Champignon_ rouge1"), 0);
|
||||
_Array_Object_.addInput(new armory.logicnode.ObjectNode(this, "Champignon_ rouge2"), 0);
|
||||
_Array_Object_.addInput(new armory.logicnode.ObjectNode(this, "flower_001.007"), 0);
|
||||
_Array_Object_.addInput(new armory.logicnode.ObjectNode(this, "flower_001.008"), 0);
|
||||
_Array_Object_.addInput(new armory.logicnode.ObjectNode(this, "flower_001.013"), 0);
|
||||
_Array_Object_.addInput(new armory.logicnode.ObjectNode(this, "flower_001.026"), 0);
|
||||
_Array_Object_.addInput(new armory.logicnode.ObjectNode(this, "flower_001.028"), 0);
|
||||
_Array_Object_.addInput(new armory.logicnode.ObjectNode(this, "flower_001.029"), 0);
|
||||
_Array_Object_.addInput(new armory.logicnode.ObjectNode(this, "flower_001.030"), 0);
|
||||
_Array_Object_.addInput(new armory.logicnode.ObjectNode(this, "flower_star_long1"), 0);
|
||||
_Array_Object_.addInput(new armory.logicnode.ObjectNode(this, "flower_star_long2"), 0);
|
||||
_Array_Object_.addOutputs([_CallFunction_014, _CallFunction_015, _CallFunction_016]);
|
||||
_Array_Object_.addOutputs([new armory.logicnode.IntegerNode(this, 0)]);
|
||||
_CallFunction_014.addInput(_Array_Object_, 0);
|
||||
var _Array_Integer_ = new armory.logicnode.ArrayIntegerNode(this);
|
||||
var _Integer = new armory.logicnode.IntegerNode(this);
|
||||
_Integer.addInput(new armory.logicnode.IntegerNode(this, 10), 0);
|
||||
_Integer.addOutputs([_Array_Integer_, _Array_Integer_, _Array_Integer_, _Array_Integer_, _Array_Integer_, _Array_Integer_, _Array_Integer_, _Array_Integer_, _Array_Integer_, _Array_Integer_, _Array_Integer_, _Array_Integer_, _Array_Integer_]);
|
||||
_Array_Integer_.addInput(_Integer, 0);
|
||||
_Array_Integer_.addInput(_Integer, 0);
|
||||
_Array_Integer_.addInput(_Integer, 0);
|
||||
_Array_Integer_.addInput(_Integer, 0);
|
||||
_Array_Integer_.addInput(_Integer, 0);
|
||||
_Array_Integer_.addInput(_Integer, 0);
|
||||
_Array_Integer_.addInput(_Integer, 0);
|
||||
_Array_Integer_.addInput(_Integer, 0);
|
||||
_Array_Integer_.addInput(_Integer, 0);
|
||||
_Array_Integer_.addInput(_Integer, 0);
|
||||
_Array_Integer_.addInput(_Integer, 0);
|
||||
_Array_Integer_.addInput(_Integer, 0);
|
||||
_Array_Integer_.addInput(_Integer, 0);
|
||||
_Array_Integer_.addOutputs([_CallFunction_014, _CallFunction_015, _CallFunction_016]);
|
||||
_Array_Integer_.addOutputs([new armory.logicnode.IntegerNode(this, 0)]);
|
||||
_CallFunction_014.addInput(_Array_Integer_, 0);
|
||||
var _Array_Float_ = new armory.logicnode.ArrayFloatNode(this);
|
||||
_Array_Float_.addInput(new armory.logicnode.FloatNode(this, 0.0), 0);
|
||||
_Array_Float_.addInput(new armory.logicnode.FloatNode(this, 0.0), 0);
|
||||
_Array_Float_.addInput(new armory.logicnode.FloatNode(this, 0.0), 0);
|
||||
_Array_Float_.addInput(new armory.logicnode.FloatNode(this, 0.0), 0);
|
||||
_Array_Float_.addInput(new armory.logicnode.FloatNode(this, 0.7649999856948853), 0);
|
||||
_Array_Float_.addInput(new armory.logicnode.FloatNode(this, 0.7649999856948853), 0);
|
||||
_Array_Float_.addInput(new armory.logicnode.FloatNode(this, 0.7649999856948853), 0);
|
||||
_Array_Float_.addInput(new armory.logicnode.FloatNode(this, 0.7649999856948853), 0);
|
||||
_Array_Float_.addInput(new armory.logicnode.FloatNode(this, 0.7649999856948853), 0);
|
||||
_Array_Float_.addInput(new armory.logicnode.FloatNode(this, 0.7649999856948853), 0);
|
||||
_Array_Float_.addInput(new armory.logicnode.FloatNode(this, 0.7649999856948853), 0);
|
||||
_Array_Float_.addInput(new armory.logicnode.FloatNode(this, 0.0), 0);
|
||||
_Array_Float_.addInput(new armory.logicnode.FloatNode(this, 0.0), 0);
|
||||
_Array_Float_.addOutputs([_CallFunction_014, _CallFunction_015, _CallFunction_016]);
|
||||
_Array_Float_.addOutputs([new armory.logicnode.IntegerNode(this, 0)]);
|
||||
_CallFunction_014.addInput(_Array_Float_, 0);
|
||||
var _Float_002 = new armory.logicnode.FloatNode(this);
|
||||
_Float_002.addInput(new armory.logicnode.FloatNode(this, 1.0), 0);
|
||||
_Float_002.addOutputs([_CallFunction_014]);
|
||||
_CallFunction_014.addInput(_Float_002, 0);
|
||||
var _Float_009 = new armory.logicnode.FloatNode(this);
|
||||
_Float_009.addInput(new armory.logicnode.FloatNode(this, 4.0), 0);
|
||||
_Float_009.addOutputs([_CallFunction_014]);
|
||||
_CallFunction_014.addInput(_Float_009, 0);
|
||||
var _Float_010 = new armory.logicnode.FloatNode(this);
|
||||
_Float_010.addInput(new armory.logicnode.FloatNode(this, -10.0), 0);
|
||||
_Float_010.addOutputs([_CallFunction_014]);
|
||||
_CallFunction_014.addInput(_Float_010, 0);
|
||||
_CallFunction_014.addOutputs([_CallFunction_015]);
|
||||
_CallFunction_014.addOutputs([new armory.logicnode.NullNode(this)]);
|
||||
_CallFunction_015.addInput(_CallFunction_014, 0);
|
||||
_CallFunction_015.addInput(_SelfTrait_005, 0);
|
||||
_CallFunction_015.addInput(new armory.logicnode.StringNode(this, "Ajout_objet"), 0);
|
||||
_CallFunction_015.addInput(_Array_Object_, 0);
|
||||
_CallFunction_015.addInput(_Array_Integer_, 0);
|
||||
_CallFunction_015.addInput(_Array_Float_, 0);
|
||||
var _Float_001 = new armory.logicnode.FloatNode(this);
|
||||
_Float_001.addInput(new armory.logicnode.FloatNode(this, 0.5), 0);
|
||||
_Float_001.addOutputs([_CallFunction_015]);
|
||||
_CallFunction_015.addInput(_Float_001, 0);
|
||||
var _Float_011 = new armory.logicnode.FloatNode(this);
|
||||
_Float_011.addInput(new armory.logicnode.FloatNode(this, 18.0), 0);
|
||||
_Float_011.addOutputs([_CallFunction_015]);
|
||||
_CallFunction_015.addInput(_Float_011, 0);
|
||||
var _Float_012 = new armory.logicnode.FloatNode(this);
|
||||
_Float_012.addInput(new armory.logicnode.FloatNode(this, 4.0), 0);
|
||||
_Float_012.addOutputs([_CallFunction_015]);
|
||||
_CallFunction_015.addInput(_Float_012, 0);
|
||||
_CallFunction_015.addOutputs([_CallFunction_016]);
|
||||
_CallFunction_015.addOutputs([new armory.logicnode.NullNode(this)]);
|
||||
_CallFunction_016.addInput(_CallFunction_015, 0);
|
||||
_CallFunction_016.addInput(_SelfTrait_005, 0);
|
||||
_CallFunction_016.addInput(new armory.logicnode.StringNode(this, "Ajout_objet"), 0);
|
||||
_CallFunction_016.addInput(_Array_Object_, 0);
|
||||
_CallFunction_016.addInput(_Array_Integer_, 0);
|
||||
_CallFunction_016.addInput(_Array_Float_, 0);
|
||||
var _Float = new armory.logicnode.FloatNode(this);
|
||||
_Float.addInput(new armory.logicnode.FloatNode(this, 0.5), 0);
|
||||
_Float.addOutputs([_CallFunction_016]);
|
||||
_CallFunction_016.addInput(_Float, 0);
|
||||
var _Float_013 = new armory.logicnode.FloatNode(this);
|
||||
_Float_013.addInput(new armory.logicnode.FloatNode(this, 45.0), 0);
|
||||
_Float_013.addOutputs([_CallFunction_016]);
|
||||
_CallFunction_016.addInput(_Float_013, 0);
|
||||
var _Float_014 = new armory.logicnode.FloatNode(this);
|
||||
_Float_014.addInput(new armory.logicnode.FloatNode(this, 25.0), 0);
|
||||
_Float_014.addOutputs([_CallFunction_016]);
|
||||
_CallFunction_016.addInput(_Float_014, 0);
|
||||
_CallFunction_016.addOutputs([new armory.logicnode.NullNode(this)]);
|
||||
_CallFunction_016.addOutputs([new armory.logicnode.NullNode(this)]);
|
||||
var _FunctionOutput_006 = new armory.logicnode.FunctionOutputNode(this);
|
||||
this.functionOutputNodes.set("_FunctionOutput_006", _FunctionOutput_006);
|
||||
var _Loop = new armory.logicnode.LoopNode(this);
|
||||
var _SetProperty = new armory.logicnode.SetPropertyNode(this);
|
||||
var _Function_006 = new armory.logicnode.FunctionNode(this);
|
||||
this.functionNodes.set("_Function_006", _Function_006);
|
||||
_Function_006.addOutputs([_SetProperty]);
|
||||
var _SeparateXYZ_004 = new armory.logicnode.SeparateVectorNode(this);
|
||||
_SeparateXYZ_004.addInput(_Function_006, 1);
|
||||
var _Math_010 = new armory.logicnode.MathNode(this);
|
||||
_Math_010.property0 = "Add";
|
||||
_Math_010.property1 = "false";
|
||||
_Math_010.addInput(_SeparateXYZ_004, 0);
|
||||
var _Math_015 = new armory.logicnode.MathNode(this);
|
||||
_Math_015.property0 = "Multiply";
|
||||
_Math_015.property1 = "false";
|
||||
_Math_015.addInput(_Function_006, 3);
|
||||
var _Math_009 = new armory.logicnode.MathNode(this);
|
||||
_Math_009.property0 = "Cosine";
|
||||
_Math_009.property1 = "false";
|
||||
var _DegtoRad_001 = new armory.logicnode.DegToRadNode(this);
|
||||
var _Math_013 = new armory.logicnode.MathNode(this);
|
||||
_Math_013.property0 = "Multiply";
|
||||
_Math_013.property1 = "false";
|
||||
_Math_013.addInput(_Loop, 1);
|
||||
_Math_013.addInput(new armory.logicnode.FloatNode(this, 45.0), 0);
|
||||
_Math_013.addOutputs([_DegtoRad_001]);
|
||||
_DegtoRad_001.addInput(_Math_013, 0);
|
||||
var _Math_011 = new armory.logicnode.MathNode(this);
|
||||
_Math_011.property0 = "Sine";
|
||||
_Math_011.property1 = "false";
|
||||
_Math_011.addInput(_DegtoRad_001, 0);
|
||||
_Math_011.addInput(new armory.logicnode.FloatNode(this, 0.5), 0);
|
||||
var _Math_014 = new armory.logicnode.MathNode(this);
|
||||
_Math_014.property0 = "Multiply";
|
||||
_Math_014.property1 = "false";
|
||||
_Math_014.addInput(_Function_006, 3);
|
||||
_Math_014.addInput(_Math_011, 0);
|
||||
var _Math_012 = new armory.logicnode.MathNode(this);
|
||||
_Math_012.property0 = "Add";
|
||||
_Math_012.property1 = "false";
|
||||
_Math_012.addInput(_SeparateXYZ_004, 1);
|
||||
_Math_012.addInput(_Math_014, 0);
|
||||
var _Vector_011 = new armory.logicnode.VectorNode(this);
|
||||
_Vector_011.addInput(_Math_010, 0);
|
||||
_Vector_011.addInput(_Math_012, 0);
|
||||
var _Math_023 = new armory.logicnode.MathNode(this);
|
||||
_Math_023.property0 = "Add";
|
||||
_Math_023.property1 = "false";
|
||||
_Math_023.addInput(_Function_006, 2);
|
||||
_Math_023.addInput(new armory.logicnode.FloatNode(this, 0.10000000149011612), 0);
|
||||
_Math_023.addOutputs([_Vector_011]);
|
||||
_Vector_011.addInput(_Math_023, 0);
|
||||
var _CastPhysicsRay_004 = new armory.logicnode.CastPhysicsRayNode(this);
|
||||
_CastPhysicsRay_004.addInput(_Vector_011, 0);
|
||||
var _Vector_016 = new armory.logicnode.VectorNode(this);
|
||||
_Vector_016.addInput(_Math_010, 0);
|
||||
_Vector_016.addInput(_Math_012, 0);
|
||||
var _Math_024 = new armory.logicnode.MathNode(this);
|
||||
_Math_024.property0 = "Subtract";
|
||||
_Math_024.property1 = "false";
|
||||
_Math_024.addInput(_Function_006, 2);
|
||||
_Math_024.addInput(new armory.logicnode.FloatNode(this, 0.10000000149011612), 0);
|
||||
_Math_024.addOutputs([_Vector_016]);
|
||||
_Vector_016.addInput(_Math_024, 0);
|
||||
_Vector_016.addOutputs([_CastPhysicsRay_004]);
|
||||
_CastPhysicsRay_004.addInput(_Vector_016, 0);
|
||||
var _Gate_005 = new armory.logicnode.GateNode(this);
|
||||
_Gate_005.property0 = "Equal";
|
||||
_Gate_005.property1 = 9.999999747378752e-05;
|
||||
_Gate_005.addInput(_Loop, 0);
|
||||
var _Object_004 = new armory.logicnode.ObjectNode(this);
|
||||
_Object_004.addInput(new armory.logicnode.ObjectNode(this, "Terrain"), 0);
|
||||
_Object_004.addOutputs([_Gate_005]);
|
||||
_Gate_005.addInput(_Object_004, 0);
|
||||
_Gate_005.addInput(_CastPhysicsRay_004, 0);
|
||||
var _SetProperty_001 = new armory.logicnode.SetPropertyNode(this);
|
||||
_SetProperty_001.addInput(_Gate_005, 0);
|
||||
_SetProperty_001.addInput(new armory.logicnode.ObjectNode(this, ""), 0);
|
||||
_SetProperty_001.addInput(new armory.logicnode.StringNode(this, "cast_ok"), 0);
|
||||
var _Boolean_005 = new armory.logicnode.BooleanNode(this);
|
||||
_Boolean_005.addInput(new armory.logicnode.BooleanNode(this, true), 0);
|
||||
_Boolean_005.addOutputs([_SetProperty_001]);
|
||||
_SetProperty_001.addInput(_Boolean_005, 0);
|
||||
_SetProperty_001.addOutputs([new armory.logicnode.NullNode(this)]);
|
||||
_Gate_005.addOutputs([_SetProperty_001]);
|
||||
var _SetProperty_002 = new armory.logicnode.SetPropertyNode(this);
|
||||
_SetProperty_002.addInput(_Gate_005, 1);
|
||||
_SetProperty_002.addInput(new armory.logicnode.ObjectNode(this, ""), 0);
|
||||
_SetProperty_002.addInput(new armory.logicnode.StringNode(this, "cast_ok"), 0);
|
||||
var _Boolean_006 = new armory.logicnode.BooleanNode(this);
|
||||
_Boolean_006.addInput(new armory.logicnode.BooleanNode(this, false), 0);
|
||||
_Boolean_006.addOutputs([_SetProperty_002]);
|
||||
_SetProperty_002.addInput(_Boolean_006, 0);
|
||||
var _LoopBreak = new armory.logicnode.LoopBreakNode(this);
|
||||
_LoopBreak.addInput(_SetProperty_002, 0);
|
||||
_SetProperty_002.addOutputs([_LoopBreak]);
|
||||
_Gate_005.addOutputs([_SetProperty_002]);
|
||||
_CastPhysicsRay_004.addOutputs([_Gate_005]);
|
||||
_CastPhysicsRay_004.addOutputs([new armory.logicnode.VectorNode(this, 0.0, 0.0, 0.0)]);
|
||||
_CastPhysicsRay_004.addOutputs([new armory.logicnode.VectorNode(this, 0.0, 0.0, 0.0)]);
|
||||
_Vector_011.addOutputs([_CastPhysicsRay_004]);
|
||||
_Math_012.addOutputs([_Vector_011, _Vector_016]);
|
||||
_Math_014.addOutputs([_Math_012]);
|
||||
_Math_011.addOutputs([_Math_014]);
|
||||
_DegtoRad_001.addOutputs([_Math_009, _Math_011]);
|
||||
_Math_009.addInput(_DegtoRad_001, 0);
|
||||
_Math_009.addInput(new armory.logicnode.FloatNode(this, 0.5), 0);
|
||||
_Math_009.addOutputs([_Math_015]);
|
||||
_Math_015.addInput(_Math_009, 0);
|
||||
_Math_015.addOutputs([_Math_010]);
|
||||
_Math_010.addInput(_Math_015, 0);
|
||||
_Math_010.addOutputs([_Vector_011, _Vector_016]);
|
||||
_SeparateXYZ_004.addOutputs([_Math_010]);
|
||||
_SeparateXYZ_004.addOutputs([_Math_012]);
|
||||
_SeparateXYZ_004.addOutputs([new armory.logicnode.FloatNode(this, 0.0)]);
|
||||
_Function_006.addOutputs([_SeparateXYZ_004]);
|
||||
_Function_006.addOutputs([_Math_023, _Math_024]);
|
||||
_Function_006.addOutputs([_Math_015, _Math_014]);
|
||||
_SetProperty.addInput(_Function_006, 0);
|
||||
_SetProperty.addInput(new armory.logicnode.ObjectNode(this, ""), 0);
|
||||
_SetProperty.addInput(new armory.logicnode.StringNode(this, "cast_ok"), 0);
|
||||
var _Boolean_004 = new armory.logicnode.BooleanNode(this);
|
||||
_Boolean_004.addInput(new armory.logicnode.BooleanNode(this, false), 0);
|
||||
_Boolean_004.addOutputs([_SetProperty]);
|
||||
_SetProperty.addInput(_Boolean_004, 0);
|
||||
_SetProperty.addOutputs([_Loop]);
|
||||
_Loop.addInput(_SetProperty, 0);
|
||||
_Loop.addInput(new armory.logicnode.IntegerNode(this, 0), 0);
|
||||
_Loop.addInput(new armory.logicnode.IntegerNode(this, 8), 0);
|
||||
_Loop.addOutputs([_Gate_005]);
|
||||
_Loop.addOutputs([_Math_013]);
|
||||
_Loop.addOutputs([_FunctionOutput_006]);
|
||||
_FunctionOutput_006.addInput(_Loop, 2);
|
||||
var _GetProperty = new armory.logicnode.GetPropertyNode(this);
|
||||
_GetProperty.addInput(new armory.logicnode.ObjectNode(this, ""), 0);
|
||||
_GetProperty.addInput(new armory.logicnode.StringNode(this, "cast_ok"), 0);
|
||||
_GetProperty.addOutputs([_FunctionOutput_006]);
|
||||
_FunctionOutput_006.addInput(_GetProperty, 0);
|
||||
var _Float_006 = new armory.logicnode.FloatNode(this);
|
||||
_Float_006.addInput(new armory.logicnode.FloatNode(this, 0.7649999856948853), 0);
|
||||
_Float_006.addOutputs([new armory.logicnode.FloatNode(this, 0.0)]);
|
||||
var _FunctionOutput_001 = new armory.logicnode.FunctionOutputNode(this);
|
||||
this.functionOutputNodes.set("_FunctionOutput_001", _FunctionOutput_001);
|
||||
var _SetVariable_001 = new armory.logicnode.SetVariableNode(this);
|
||||
@ -297,319 +467,136 @@ package arm.node;
|
||||
_SetVariable_001.addOutputs([_FunctionOutput_001]);
|
||||
_FunctionOutput_001.addInput(_SetVariable_001, 0);
|
||||
_FunctionOutput_001.addInput(new armory.logicnode.NullNode(this), 0);
|
||||
var _FunctionOutput_006 = new armory.logicnode.FunctionOutputNode(this);
|
||||
this.functionOutputNodes.set("_FunctionOutput_006", _FunctionOutput_006);
|
||||
var _Loop = new armory.logicnode.LoopNode(this);
|
||||
var _SetProperty = new armory.logicnode.SetPropertyNode(this);
|
||||
var _Function_006 = new armory.logicnode.FunctionNode(this);
|
||||
this.functionNodes.set("_Function_006", _Function_006);
|
||||
_Function_006.addOutputs([_SetProperty]);
|
||||
var _SeparateXYZ_004 = new armory.logicnode.SeparateVectorNode(this);
|
||||
_SeparateXYZ_004.addInput(_Function_006, 1);
|
||||
var _Math_010 = new armory.logicnode.MathNode(this);
|
||||
_Math_010.property0 = "Add";
|
||||
_Math_010.property1 = "false";
|
||||
_Math_010.addInput(_SeparateXYZ_004, 0);
|
||||
var _Math_015 = new armory.logicnode.MathNode(this);
|
||||
_Math_015.property0 = "Multiply";
|
||||
_Math_015.property1 = "false";
|
||||
_Math_015.addInput(_Function_006, 3);
|
||||
var _Math_009 = new armory.logicnode.MathNode(this);
|
||||
_Math_009.property0 = "Cosine";
|
||||
_Math_009.property1 = "false";
|
||||
var _DegtoRad_001 = new armory.logicnode.DegToRadNode(this);
|
||||
var _Math_013 = new armory.logicnode.MathNode(this);
|
||||
_Math_013.property0 = "Multiply";
|
||||
_Math_013.property1 = "false";
|
||||
_Math_013.addInput(_Loop, 1);
|
||||
_Math_013.addInput(new armory.logicnode.FloatNode(this, 45.0), 0);
|
||||
_Math_013.addOutputs([_DegtoRad_001]);
|
||||
_DegtoRad_001.addInput(_Math_013, 0);
|
||||
var _Math_011 = new armory.logicnode.MathNode(this);
|
||||
_Math_011.property0 = "Sine";
|
||||
_Math_011.property1 = "false";
|
||||
_Math_011.addInput(_DegtoRad_001, 0);
|
||||
_Math_011.addInput(new armory.logicnode.FloatNode(this, 0.5), 0);
|
||||
var _Math_014 = new armory.logicnode.MathNode(this);
|
||||
_Math_014.property0 = "Multiply";
|
||||
_Math_014.property1 = "false";
|
||||
_Math_014.addInput(_Function_006, 3);
|
||||
_Math_014.addInput(_Math_011, 0);
|
||||
var _Math_012 = new armory.logicnode.MathNode(this);
|
||||
_Math_012.property0 = "Add";
|
||||
_Math_012.property1 = "false";
|
||||
_Math_012.addInput(_SeparateXYZ_004, 1);
|
||||
_Math_012.addInput(_Math_014, 0);
|
||||
var _Vector_011 = new armory.logicnode.VectorNode(this);
|
||||
_Vector_011.addInput(_Math_010, 0);
|
||||
_Vector_011.addInput(_Math_012, 0);
|
||||
var _Math_023 = new armory.logicnode.MathNode(this);
|
||||
_Math_023.property0 = "Add";
|
||||
_Math_023.property1 = "false";
|
||||
_Math_023.addInput(_Function_006, 2);
|
||||
_Math_023.addInput(new armory.logicnode.FloatNode(this, 0.10000000149011612), 0);
|
||||
_Math_023.addOutputs([_Vector_011]);
|
||||
_Vector_011.addInput(_Math_023, 0);
|
||||
var _CastPhysicsRay_004 = new armory.logicnode.CastPhysicsRayNode(this);
|
||||
_CastPhysicsRay_004.addInput(_Vector_011, 0);
|
||||
var _Vector_016 = new armory.logicnode.VectorNode(this);
|
||||
_Vector_016.addInput(_Math_010, 0);
|
||||
_Vector_016.addInput(_Math_012, 0);
|
||||
var _Math_024 = new armory.logicnode.MathNode(this);
|
||||
_Math_024.property0 = "Subtract";
|
||||
_Math_024.property1 = "false";
|
||||
_Math_024.addInput(_Function_006, 2);
|
||||
_Math_024.addInput(new armory.logicnode.FloatNode(this, 0.10000000149011612), 0);
|
||||
_Math_024.addOutputs([_Vector_016]);
|
||||
_Vector_016.addInput(_Math_024, 0);
|
||||
_Vector_016.addOutputs([_CastPhysicsRay_004]);
|
||||
_CastPhysicsRay_004.addInput(_Vector_016, 0);
|
||||
var _Gate_005 = new armory.logicnode.GateNode(this);
|
||||
_Gate_005.property0 = "Equal";
|
||||
_Gate_005.property1 = 9.999999747378752e-05;
|
||||
_Gate_005.addInput(_Loop, 0);
|
||||
var _Object_004 = new armory.logicnode.ObjectNode(this);
|
||||
_Object_004.addInput(new armory.logicnode.ObjectNode(this, "Terrain"), 0);
|
||||
_Object_004.addOutputs([_Gate_005]);
|
||||
_Gate_005.addInput(_Object_004, 0);
|
||||
_Gate_005.addInput(_CastPhysicsRay_004, 0);
|
||||
var _SetProperty_001 = new armory.logicnode.SetPropertyNode(this);
|
||||
_SetProperty_001.addInput(_Gate_005, 0);
|
||||
_SetProperty_001.addInput(new armory.logicnode.ObjectNode(this, ""), 0);
|
||||
_SetProperty_001.addInput(new armory.logicnode.StringNode(this, "cast_ok"), 0);
|
||||
var _Boolean_005 = new armory.logicnode.BooleanNode(this);
|
||||
_Boolean_005.addInput(new armory.logicnode.BooleanNode(this, true), 0);
|
||||
_Boolean_005.addOutputs([_SetProperty_001]);
|
||||
_SetProperty_001.addInput(_Boolean_005, 0);
|
||||
_SetProperty_001.addOutputs([new armory.logicnode.NullNode(this)]);
|
||||
_Gate_005.addOutputs([_SetProperty_001]);
|
||||
var _SetProperty_002 = new armory.logicnode.SetPropertyNode(this);
|
||||
_SetProperty_002.addInput(_Gate_005, 1);
|
||||
_SetProperty_002.addInput(new armory.logicnode.ObjectNode(this, ""), 0);
|
||||
_SetProperty_002.addInput(new armory.logicnode.StringNode(this, "cast_ok"), 0);
|
||||
var _Boolean_006 = new armory.logicnode.BooleanNode(this);
|
||||
_Boolean_006.addInput(new armory.logicnode.BooleanNode(this, false), 0);
|
||||
_Boolean_006.addOutputs([_SetProperty_002]);
|
||||
_SetProperty_002.addInput(_Boolean_006, 0);
|
||||
var _LoopBreak = new armory.logicnode.LoopBreakNode(this);
|
||||
_LoopBreak.addInput(_SetProperty_002, 0);
|
||||
_SetProperty_002.addOutputs([_LoopBreak]);
|
||||
_Gate_005.addOutputs([_SetProperty_002]);
|
||||
_CastPhysicsRay_004.addOutputs([_Gate_005]);
|
||||
_CastPhysicsRay_004.addOutputs([new armory.logicnode.VectorNode(this, 0.0, 0.0, 0.0)]);
|
||||
_CastPhysicsRay_004.addOutputs([new armory.logicnode.VectorNode(this, 0.0, 0.0, 0.0)]);
|
||||
_Vector_011.addOutputs([_CastPhysicsRay_004]);
|
||||
_Math_012.addOutputs([_Vector_011, _Vector_016]);
|
||||
_Math_014.addOutputs([_Math_012]);
|
||||
_Math_011.addOutputs([_Math_014]);
|
||||
_DegtoRad_001.addOutputs([_Math_009, _Math_011]);
|
||||
_Math_009.addInput(_DegtoRad_001, 0);
|
||||
_Math_009.addInput(new armory.logicnode.FloatNode(this, 0.5), 0);
|
||||
_Math_009.addOutputs([_Math_015]);
|
||||
_Math_015.addInput(_Math_009, 0);
|
||||
_Math_015.addOutputs([_Math_010]);
|
||||
_Math_010.addInput(_Math_015, 0);
|
||||
_Math_010.addOutputs([_Vector_011, _Vector_016]);
|
||||
_SeparateXYZ_004.addOutputs([_Math_010]);
|
||||
_SeparateXYZ_004.addOutputs([_Math_012]);
|
||||
_SeparateXYZ_004.addOutputs([new armory.logicnode.FloatNode(this, 0.0)]);
|
||||
_Function_006.addOutputs([_SeparateXYZ_004]);
|
||||
_Function_006.addOutputs([_Math_023, _Math_024]);
|
||||
_Function_006.addOutputs([_Math_015, _Math_014]);
|
||||
_SetProperty.addInput(_Function_006, 0);
|
||||
_SetProperty.addInput(new armory.logicnode.ObjectNode(this, ""), 0);
|
||||
_SetProperty.addInput(new armory.logicnode.StringNode(this, "cast_ok"), 0);
|
||||
var _Boolean_004 = new armory.logicnode.BooleanNode(this);
|
||||
_Boolean_004.addInput(new armory.logicnode.BooleanNode(this, false), 0);
|
||||
_Boolean_004.addOutputs([_SetProperty]);
|
||||
_SetProperty.addInput(_Boolean_004, 0);
|
||||
_SetProperty.addOutputs([_Loop]);
|
||||
_Loop.addInput(_SetProperty, 0);
|
||||
_Loop.addInput(new armory.logicnode.IntegerNode(this, 0), 0);
|
||||
_Loop.addInput(new armory.logicnode.IntegerNode(this, 8), 0);
|
||||
_Loop.addOutputs([_Gate_005]);
|
||||
_Loop.addOutputs([_Math_013]);
|
||||
_Loop.addOutputs([_FunctionOutput_006]);
|
||||
_FunctionOutput_006.addInput(_Loop, 2);
|
||||
var _GetProperty = new armory.logicnode.GetPropertyNode(this);
|
||||
_GetProperty.addInput(new armory.logicnode.ObjectNode(this, ""), 0);
|
||||
_GetProperty.addInput(new armory.logicnode.StringNode(this, "cast_ok"), 0);
|
||||
_GetProperty.addOutputs([_FunctionOutput_006]);
|
||||
_FunctionOutput_006.addInput(_GetProperty, 0);
|
||||
var _Float_006 = new armory.logicnode.FloatNode(this);
|
||||
_Float_006.addInput(new armory.logicnode.FloatNode(this, 0.7649999856948853), 0);
|
||||
_Float_006.addOutputs([new armory.logicnode.FloatNode(this, 0.0)]);
|
||||
var _Vector = new armory.logicnode.VectorNode(this);
|
||||
_Vector.addInput(new armory.logicnode.FloatNode(this, -12.0), 0);
|
||||
_Vector.addInput(new armory.logicnode.FloatNode(this, -10.0), 0);
|
||||
_Vector.addInput(new armory.logicnode.FloatNode(this, 0.0), 0);
|
||||
_Vector.addOutputs([new armory.logicnode.VectorNode(this, 0.0, 0.0, 0.0)]);
|
||||
var _Vector_013 = new armory.logicnode.VectorNode(this);
|
||||
_Vector_013.addInput(new armory.logicnode.FloatNode(this, 1.0), 0);
|
||||
_Vector_013.addInput(new armory.logicnode.FloatNode(this, 140.0), 0);
|
||||
_Vector_013.addInput(new armory.logicnode.FloatNode(this, 0.0), 0);
|
||||
_Vector_013.addOutputs([new armory.logicnode.VectorNode(this, 0.0, 0.0, 0.0)]);
|
||||
var _Vector_012 = new armory.logicnode.VectorNode(this);
|
||||
_Vector_012.addInput(new armory.logicnode.FloatNode(this, -7.0), 0);
|
||||
_Vector_012.addInput(new armory.logicnode.FloatNode(this, 67.0), 0);
|
||||
_Vector_012.addInput(new armory.logicnode.FloatNode(this, 0.0), 0);
|
||||
_Vector_012.addOutputs([new armory.logicnode.VectorNode(this, 0.0, 0.0, 0.0)]);
|
||||
var _Vector_015 = new armory.logicnode.VectorNode(this);
|
||||
_Vector_015.addInput(new armory.logicnode.FloatNode(this, -14.799999237060547), 0);
|
||||
_Vector_015.addInput(new armory.logicnode.FloatNode(this, 70.0), 0);
|
||||
_Vector_015.addInput(new armory.logicnode.FloatNode(this, 0.0), 0);
|
||||
_Vector_015.addOutputs([new armory.logicnode.VectorNode(this, 0.0, 0.0, 0.0)]);
|
||||
var _Vector_014 = new armory.logicnode.VectorNode(this);
|
||||
_Vector_014.addInput(new armory.logicnode.FloatNode(this, 5.0), 0);
|
||||
_Vector_014.addInput(new armory.logicnode.FloatNode(this, 141.0), 0);
|
||||
_Vector_014.addInput(new armory.logicnode.FloatNode(this, 0.0), 0);
|
||||
_Vector_014.addOutputs([new armory.logicnode.VectorNode(this, 0.0, 0.0, 0.0)]);
|
||||
var _Vector_003 = new armory.logicnode.VectorNode(this);
|
||||
_Vector_003.addInput(new armory.logicnode.FloatNode(this, 4.5), 0);
|
||||
_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 _CallFunction_016 = new armory.logicnode.CallFunctionNode(this);
|
||||
var _CallFunction_015 = new armory.logicnode.CallFunctionNode(this);
|
||||
var _CallFunction_014 = new armory.logicnode.CallFunctionNode(this);
|
||||
var _OnInit_001 = new armory.logicnode.OnInitNode(this);
|
||||
_OnInit_001.addOutputs([_CallFunction_014]);
|
||||
_CallFunction_014.addInput(_OnInit_001, 0);
|
||||
var _SelfTrait_005 = new armory.logicnode.SelfTraitNode(this);
|
||||
_SelfTrait_005.addOutputs([_CallFunction_014, _CallFunction_015, _CallFunction_016]);
|
||||
_CallFunction_014.addInput(_SelfTrait_005, 0);
|
||||
_CallFunction_014.addInput(new armory.logicnode.StringNode(this, "Ajout_objet"), 0);
|
||||
var _Array_Object_ = new armory.logicnode.ArrayObjectNode(this);
|
||||
_Array_Object_.addInput(new armory.logicnode.ObjectNode(this, "Champignon_ brun1"), 0);
|
||||
_Array_Object_.addInput(new armory.logicnode.ObjectNode(this, "Champignon_ brun2"), 0);
|
||||
_Array_Object_.addInput(new armory.logicnode.ObjectNode(this, "Champignon_ rouge1"), 0);
|
||||
_Array_Object_.addInput(new armory.logicnode.ObjectNode(this, "Champignon_ rouge2"), 0);
|
||||
_Array_Object_.addInput(new armory.logicnode.ObjectNode(this, "flower_001.007"), 0);
|
||||
_Array_Object_.addInput(new armory.logicnode.ObjectNode(this, "flower_001.008"), 0);
|
||||
_Array_Object_.addInput(new armory.logicnode.ObjectNode(this, "flower_001.013"), 0);
|
||||
_Array_Object_.addInput(new armory.logicnode.ObjectNode(this, "flower_001.026"), 0);
|
||||
_Array_Object_.addInput(new armory.logicnode.ObjectNode(this, "flower_001.028"), 0);
|
||||
_Array_Object_.addInput(new armory.logicnode.ObjectNode(this, "flower_001.029"), 0);
|
||||
_Array_Object_.addInput(new armory.logicnode.ObjectNode(this, "flower_001.030"), 0);
|
||||
_Array_Object_.addInput(new armory.logicnode.ObjectNode(this, "flower_star_long1"), 0);
|
||||
_Array_Object_.addInput(new armory.logicnode.ObjectNode(this, "flower_star_long2"), 0);
|
||||
_Array_Object_.addOutputs([_CallFunction_014, _CallFunction_015, _CallFunction_016]);
|
||||
_Array_Object_.addOutputs([new armory.logicnode.IntegerNode(this, 0)]);
|
||||
_CallFunction_014.addInput(_Array_Object_, 0);
|
||||
var _Array_Integer_ = new armory.logicnode.ArrayIntegerNode(this);
|
||||
var _Integer = new armory.logicnode.IntegerNode(this);
|
||||
_Integer.addInput(new armory.logicnode.IntegerNode(this, 10), 0);
|
||||
_Integer.addOutputs([_Array_Integer_, _Array_Integer_, _Array_Integer_, _Array_Integer_, _Array_Integer_, _Array_Integer_, _Array_Integer_, _Array_Integer_, _Array_Integer_, _Array_Integer_, _Array_Integer_, _Array_Integer_, _Array_Integer_]);
|
||||
_Array_Integer_.addInput(_Integer, 0);
|
||||
_Array_Integer_.addInput(_Integer, 0);
|
||||
_Array_Integer_.addInput(_Integer, 0);
|
||||
_Array_Integer_.addInput(_Integer, 0);
|
||||
_Array_Integer_.addInput(_Integer, 0);
|
||||
_Array_Integer_.addInput(_Integer, 0);
|
||||
_Array_Integer_.addInput(_Integer, 0);
|
||||
_Array_Integer_.addInput(_Integer, 0);
|
||||
_Array_Integer_.addInput(_Integer, 0);
|
||||
_Array_Integer_.addInput(_Integer, 0);
|
||||
_Array_Integer_.addInput(_Integer, 0);
|
||||
_Array_Integer_.addInput(_Integer, 0);
|
||||
_Array_Integer_.addInput(_Integer, 0);
|
||||
_Array_Integer_.addOutputs([_CallFunction_014, _CallFunction_015, _CallFunction_016]);
|
||||
_Array_Integer_.addOutputs([new armory.logicnode.IntegerNode(this, 0)]);
|
||||
_CallFunction_014.addInput(_Array_Integer_, 0);
|
||||
var _Array_Float_ = new armory.logicnode.ArrayFloatNode(this);
|
||||
_Array_Float_.addInput(new armory.logicnode.FloatNode(this, 0.0), 0);
|
||||
_Array_Float_.addInput(new armory.logicnode.FloatNode(this, 0.0), 0);
|
||||
_Array_Float_.addInput(new armory.logicnode.FloatNode(this, 0.0), 0);
|
||||
_Array_Float_.addInput(new armory.logicnode.FloatNode(this, 0.0), 0);
|
||||
_Array_Float_.addInput(new armory.logicnode.FloatNode(this, 0.7649999856948853), 0);
|
||||
_Array_Float_.addInput(new armory.logicnode.FloatNode(this, 0.7649999856948853), 0);
|
||||
_Array_Float_.addInput(new armory.logicnode.FloatNode(this, 0.7649999856948853), 0);
|
||||
_Array_Float_.addInput(new armory.logicnode.FloatNode(this, 0.7649999856948853), 0);
|
||||
_Array_Float_.addInput(new armory.logicnode.FloatNode(this, 0.7649999856948853), 0);
|
||||
_Array_Float_.addInput(new armory.logicnode.FloatNode(this, 0.7649999856948853), 0);
|
||||
_Array_Float_.addInput(new armory.logicnode.FloatNode(this, 0.7649999856948853), 0);
|
||||
_Array_Float_.addInput(new armory.logicnode.FloatNode(this, 0.0), 0);
|
||||
_Array_Float_.addInput(new armory.logicnode.FloatNode(this, 0.0), 0);
|
||||
_Array_Float_.addOutputs([_CallFunction_014, _CallFunction_015, _CallFunction_016]);
|
||||
_Array_Float_.addOutputs([new armory.logicnode.IntegerNode(this, 0)]);
|
||||
_CallFunction_014.addInput(_Array_Float_, 0);
|
||||
var _Float_002 = new armory.logicnode.FloatNode(this);
|
||||
_Float_002.addInput(new armory.logicnode.FloatNode(this, 1.0), 0);
|
||||
_Float_002.addOutputs([_CallFunction_014]);
|
||||
_CallFunction_014.addInput(_Float_002, 0);
|
||||
var _Float_009 = new armory.logicnode.FloatNode(this);
|
||||
_Float_009.addInput(new armory.logicnode.FloatNode(this, 4.0), 0);
|
||||
_Float_009.addOutputs([_CallFunction_014]);
|
||||
_CallFunction_014.addInput(_Float_009, 0);
|
||||
var _Float_010 = new armory.logicnode.FloatNode(this);
|
||||
_Float_010.addInput(new armory.logicnode.FloatNode(this, -10.0), 0);
|
||||
_Float_010.addOutputs([_CallFunction_014]);
|
||||
_CallFunction_014.addInput(_Float_010, 0);
|
||||
_CallFunction_014.addOutputs([_CallFunction_015]);
|
||||
_CallFunction_014.addOutputs([new armory.logicnode.NullNode(this)]);
|
||||
_CallFunction_015.addInput(_CallFunction_014, 0);
|
||||
_CallFunction_015.addInput(_SelfTrait_005, 0);
|
||||
_CallFunction_015.addInput(new armory.logicnode.StringNode(this, "Ajout_objet"), 0);
|
||||
_CallFunction_015.addInput(_Array_Object_, 0);
|
||||
_CallFunction_015.addInput(_Array_Integer_, 0);
|
||||
_CallFunction_015.addInput(_Array_Float_, 0);
|
||||
var _Float_001 = new armory.logicnode.FloatNode(this);
|
||||
_Float_001.addInput(new armory.logicnode.FloatNode(this, 0.5), 0);
|
||||
_Float_001.addOutputs([_CallFunction_015]);
|
||||
_CallFunction_015.addInput(_Float_001, 0);
|
||||
var _Float_011 = new armory.logicnode.FloatNode(this);
|
||||
_Float_011.addInput(new armory.logicnode.FloatNode(this, 18.0), 0);
|
||||
_Float_011.addOutputs([_CallFunction_015]);
|
||||
_CallFunction_015.addInput(_Float_011, 0);
|
||||
var _Float_012 = new armory.logicnode.FloatNode(this);
|
||||
_Float_012.addInput(new armory.logicnode.FloatNode(this, 4.0), 0);
|
||||
_Float_012.addOutputs([_CallFunction_015]);
|
||||
_CallFunction_015.addInput(_Float_012, 0);
|
||||
_CallFunction_015.addOutputs([_CallFunction_016]);
|
||||
_CallFunction_015.addOutputs([new armory.logicnode.NullNode(this)]);
|
||||
_CallFunction_016.addInput(_CallFunction_015, 0);
|
||||
_CallFunction_016.addInput(_SelfTrait_005, 0);
|
||||
_CallFunction_016.addInput(new armory.logicnode.StringNode(this, "Ajout_objet"), 0);
|
||||
_CallFunction_016.addInput(_Array_Object_, 0);
|
||||
_CallFunction_016.addInput(_Array_Integer_, 0);
|
||||
_CallFunction_016.addInput(_Array_Float_, 0);
|
||||
var _Float = new armory.logicnode.FloatNode(this);
|
||||
_Float.addInput(new armory.logicnode.FloatNode(this, 0.5), 0);
|
||||
_Float.addOutputs([_CallFunction_016]);
|
||||
_CallFunction_016.addInput(_Float, 0);
|
||||
var _Float_013 = new armory.logicnode.FloatNode(this);
|
||||
_Float_013.addInput(new armory.logicnode.FloatNode(this, 45.0), 0);
|
||||
_Float_013.addOutputs([_CallFunction_016]);
|
||||
_CallFunction_016.addInput(_Float_013, 0);
|
||||
var _Float_014 = new armory.logicnode.FloatNode(this);
|
||||
_Float_014.addInput(new armory.logicnode.FloatNode(this, 25.0), 0);
|
||||
_Float_014.addOutputs([_CallFunction_016]);
|
||||
_CallFunction_016.addInput(_Float_014, 0);
|
||||
_CallFunction_016.addOutputs([new armory.logicnode.NullNode(this)]);
|
||||
_CallFunction_016.addOutputs([new armory.logicnode.NullNode(this)]);
|
||||
var _FunctionOutput_002 = new armory.logicnode.FunctionOutputNode(this);
|
||||
this.functionOutputNodes.set("_FunctionOutput_002", _FunctionOutput_002);
|
||||
var _CallFunction_013 = new armory.logicnode.CallFunctionNode(this);
|
||||
var _ArrayLoop = new armory.logicnode.ArrayLoopNode(this);
|
||||
var _Function_002 = new armory.logicnode.FunctionNode(this);
|
||||
this.functionNodes.set("_Function_002", _Function_002);
|
||||
_Function_002.addOutputs([_ArrayLoop]);
|
||||
_Function_002.addOutputs([_ArrayLoop]);
|
||||
var _ArrayGet = new armory.logicnode.ArrayGetNode(this);
|
||||
_ArrayGet.addInput(_Function_002, 2);
|
||||
var _Math_003 = new armory.logicnode.MathNode(this);
|
||||
_Math_003.property0 = "Add";
|
||||
_Math_003.property1 = "false";
|
||||
var _Integer_004 = new armory.logicnode.IntegerNode(this);
|
||||
_Integer_004.addInput(new armory.logicnode.IntegerNode(this, -2), 0);
|
||||
var _SetVariable_002 = new armory.logicnode.SetVariableNode(this);
|
||||
_SetVariable_002.addInput(_ArrayLoop, 0);
|
||||
_SetVariable_002.addInput(_Integer_004, 0);
|
||||
_SetVariable_002.addInput(_Math_003, 0);
|
||||
_SetVariable_002.addOutputs([new armory.logicnode.NullNode(this)]);
|
||||
var _SetVariable_003 = new armory.logicnode.SetVariableNode(this);
|
||||
_SetVariable_003.addInput(_ArrayLoop, 2);
|
||||
_SetVariable_003.addInput(_Integer_004, 0);
|
||||
var _Integer_005 = new armory.logicnode.IntegerNode(this);
|
||||
_Integer_005.addInput(new armory.logicnode.IntegerNode(this, -2), 0);
|
||||
_Integer_005.addOutputs([_SetVariable_003]);
|
||||
_SetVariable_003.addInput(_Integer_005, 0);
|
||||
_SetVariable_003.addOutputs([new armory.logicnode.NullNode(this)]);
|
||||
_Integer_004.addOutputs([_Math_003, _SetVariable_002, _SetVariable_003]);
|
||||
_Math_003.addInput(_Integer_004, 0);
|
||||
_Math_003.addInput(new armory.logicnode.FloatNode(this, 1.0), 0);
|
||||
var _ArrayGet_001 = new armory.logicnode.ArrayGetNode(this);
|
||||
_ArrayGet_001.addInput(_Function_002, 3);
|
||||
_ArrayGet_001.addInput(_Math_003, 0);
|
||||
_ArrayGet_001.addOutputs([_CallFunction_013]);
|
||||
_Math_003.addOutputs([_SetVariable_002, _ArrayGet, _ArrayGet_001]);
|
||||
_ArrayGet.addInput(_Math_003, 0);
|
||||
var _Math_002 = new armory.logicnode.MathNode(this);
|
||||
_Math_002.property0 = "Multiply";
|
||||
_Math_002.property1 = "false";
|
||||
_Math_002.addInput(_ArrayGet, 0);
|
||||
_Math_002.addInput(_Function_002, 4);
|
||||
_Math_002.addOutputs([_CallFunction_013]);
|
||||
_ArrayGet.addOutputs([_Math_002]);
|
||||
_Function_002.addOutputs([_ArrayGet]);
|
||||
_Function_002.addOutputs([_ArrayGet_001]);
|
||||
_Function_002.addOutputs([_Math_002]);
|
||||
_Function_002.addOutputs([_CallFunction_013]);
|
||||
_Function_002.addOutputs([_CallFunction_013]);
|
||||
_ArrayLoop.addInput(_Function_002, 0);
|
||||
_ArrayLoop.addInput(_Function_002, 1);
|
||||
_ArrayLoop.addOutputs([_CallFunction_013, _SetVariable_002]);
|
||||
_ArrayLoop.addOutputs([_CallFunction_013]);
|
||||
_ArrayLoop.addOutputs([_SetVariable_003]);
|
||||
_CallFunction_013.addInput(_ArrayLoop, 0);
|
||||
var _SelfTrait_004 = new armory.logicnode.SelfTraitNode(this);
|
||||
_SelfTrait_004.addOutputs([_CallFunction_013]);
|
||||
_CallFunction_013.addInput(_SelfTrait_004, 0);
|
||||
_CallFunction_013.addInput(new armory.logicnode.StringNode(this, "Ajout_elements"), 0);
|
||||
_CallFunction_013.addInput(_ArrayLoop, 1);
|
||||
_CallFunction_013.addInput(_Math_002, 0);
|
||||
_CallFunction_013.addInput(_ArrayGet_001, 0);
|
||||
_CallFunction_013.addInput(new armory.logicnode.NullNode(this), 0);
|
||||
_CallFunction_013.addInput(_Function_002, 5);
|
||||
_CallFunction_013.addInput(_Function_002, 6);
|
||||
_CallFunction_013.addOutputs([_FunctionOutput_002]);
|
||||
_CallFunction_013.addOutputs([new armory.logicnode.NullNode(this)]);
|
||||
_FunctionOutput_002.addInput(_CallFunction_013, 0);
|
||||
_FunctionOutput_002.addInput(new armory.logicnode.NullNode(this), 0);
|
||||
var _Float_003 = new armory.logicnode.FloatNode(this);
|
||||
_Float_003.addInput(new armory.logicnode.FloatNode(this, 30.0), 0);
|
||||
_Float_003.addOutputs([new armory.logicnode.FloatNode(this, 0.0)]);
|
||||
var _FunctionOutput = new armory.logicnode.FunctionOutputNode(this);
|
||||
this.functionOutputNodes.set("_FunctionOutput", _FunctionOutput);
|
||||
var _Function = new armory.logicnode.FunctionNode(this);
|
||||
this.functionNodes.set("_Function", _Function);
|
||||
_Function.addOutputs([_FunctionOutput]);
|
||||
_Function.addOutputs([new armory.logicnode.NullNode(this)]);
|
||||
_Function.addOutputs([new armory.logicnode.NullNode(this)]);
|
||||
_FunctionOutput.addInput(_Function, 0);
|
||||
var _Vector_002 = new armory.logicnode.VectorNode(this);
|
||||
var _Random_Float_ = new armory.logicnode.RandomFloatNode(this);
|
||||
var _SeparateXYZ_001 = new armory.logicnode.SeparateVectorNode(this);
|
||||
var _Vector_001 = new armory.logicnode.VectorNode(this);
|
||||
_Vector_001.addInput(new armory.logicnode.FloatNode(this, -15.0), 0);
|
||||
_Vector_001.addInput(new armory.logicnode.FloatNode(this, -10.0), 0);
|
||||
_Vector_001.addInput(new armory.logicnode.FloatNode(this, -7.0), 0);
|
||||
var _VectorMath_002 = new armory.logicnode.VectorMathNode(this);
|
||||
_VectorMath_002.property0 = "Add";
|
||||
_VectorMath_002.addInput(_Vector_001, 0);
|
||||
var _Vector_004 = new armory.logicnode.VectorNode(this);
|
||||
_Vector_004.addInput(new armory.logicnode.FloatNode(this, 19.5), 0);
|
||||
_Vector_004.addInput(new armory.logicnode.FloatNode(this, 150.0), 0);
|
||||
_Vector_004.addInput(new armory.logicnode.FloatNode(this, 44.0), 0);
|
||||
_Vector_004.addOutputs([_VectorMath_002]);
|
||||
_VectorMath_002.addInput(_Vector_004, 0);
|
||||
var _SeparateXYZ = new armory.logicnode.SeparateVectorNode(this);
|
||||
_SeparateXYZ.addInput(_VectorMath_002, 0);
|
||||
_SeparateXYZ.addOutputs([_Random_Float_]);
|
||||
var _Random_Float__001 = new armory.logicnode.RandomFloatNode(this);
|
||||
_Random_Float__001.addInput(_SeparateXYZ_001, 1);
|
||||
_Random_Float__001.addInput(_SeparateXYZ, 1);
|
||||
_Random_Float__001.addOutputs([_Vector_002]);
|
||||
_SeparateXYZ.addOutputs([_Random_Float__001]);
|
||||
_SeparateXYZ.addOutputs([new armory.logicnode.FloatNode(this, 0.0)]);
|
||||
_VectorMath_002.addOutputs([_SeparateXYZ]);
|
||||
_VectorMath_002.addOutputs([new armory.logicnode.FloatNode(this, 0.0)]);
|
||||
_Vector_001.addOutputs([_SeparateXYZ_001, _VectorMath_002]);
|
||||
_SeparateXYZ_001.addInput(_Vector_001, 0);
|
||||
_SeparateXYZ_001.addOutputs([_Random_Float_]);
|
||||
_SeparateXYZ_001.addOutputs([_Random_Float__001]);
|
||||
_SeparateXYZ_001.addOutputs([new armory.logicnode.FloatNode(this, 0.0)]);
|
||||
_Random_Float_.addInput(_SeparateXYZ_001, 0);
|
||||
_Random_Float_.addInput(_SeparateXYZ, 0);
|
||||
_Random_Float_.addOutputs([_Vector_002]);
|
||||
_Vector_002.addInput(_Random_Float_, 0);
|
||||
_Vector_002.addInput(_Random_Float__001, 0);
|
||||
_Vector_002.addInput(new armory.logicnode.FloatNode(this, 0.0), 0);
|
||||
_Vector_002.addOutputs([_FunctionOutput]);
|
||||
_FunctionOutput.addInput(_Vector_002, 0);
|
||||
}
|
||||
|
||||
public function Ray_vec(arg0:Dynamic, arg1:Dynamic) {
|
||||
var functionNode = this.functionNodes["_Function"];
|
||||
functionNode.args = [];
|
||||
functionNode.args.push(arg0);
|
||||
functionNode.args.push(arg1);
|
||||
functionNode.run(0);
|
||||
return this.functionOutputNodes["_FunctionOutput"].result;
|
||||
}
|
||||
|
||||
|
||||
public function Ajout_objet(arg0:Dynamic, arg1:Dynamic, arg2:Dynamic, arg3:Dynamic, arg4:Dynamic, arg5:Dynamic) {
|
||||
var functionNode = this.functionNodes["_Function_002"];
|
||||
public function Cast_ray_cercle(arg0:Dynamic, arg1:Dynamic, arg2:Dynamic) {
|
||||
var functionNode = this.functionNodes["_Function_006"];
|
||||
functionNode.args = [];
|
||||
functionNode.args.push(arg0);
|
||||
functionNode.args.push(arg1);
|
||||
functionNode.args.push(arg2);
|
||||
functionNode.args.push(arg3);
|
||||
functionNode.args.push(arg4);
|
||||
functionNode.args.push(arg5);
|
||||
functionNode.run(0);
|
||||
return this.functionOutputNodes["_FunctionOutput_002"].result;
|
||||
return this.functionOutputNodes["_FunctionOutput_006"].result;
|
||||
}
|
||||
|
||||
|
||||
@ -627,14 +614,27 @@ package arm.node;
|
||||
}
|
||||
|
||||
|
||||
public function Cast_ray_cercle(arg0:Dynamic, arg1:Dynamic, arg2:Dynamic) {
|
||||
var functionNode = this.functionNodes["_Function_006"];
|
||||
public function Ajout_objet(arg0:Dynamic, arg1:Dynamic, arg2:Dynamic, arg3:Dynamic, arg4:Dynamic, arg5:Dynamic) {
|
||||
var functionNode = this.functionNodes["_Function_002"];
|
||||
functionNode.args = [];
|
||||
functionNode.args.push(arg0);
|
||||
functionNode.args.push(arg1);
|
||||
functionNode.args.push(arg2);
|
||||
functionNode.args.push(arg3);
|
||||
functionNode.args.push(arg4);
|
||||
functionNode.args.push(arg5);
|
||||
functionNode.run(0);
|
||||
return this.functionOutputNodes["_FunctionOutput_006"].result;
|
||||
return this.functionOutputNodes["_FunctionOutput_002"].result;
|
||||
}
|
||||
|
||||
|
||||
public function Ray_vec(arg0:Dynamic, arg1:Dynamic) {
|
||||
var functionNode = this.functionNodes["_Function"];
|
||||
functionNode.args = [];
|
||||
functionNode.args.push(arg0);
|
||||
functionNode.args.push(arg1);
|
||||
functionNode.run(0);
|
||||
return this.functionOutputNodes["_FunctionOutput"].result;
|
||||
}
|
||||
|
||||
}
|
@ -61,7 +61,7 @@ package arm.node;
|
||||
_Array_Object__001.addInput(new armory.logicnode.ObjectNode(this, "bridge_01"), 0);
|
||||
_Array_Object__001.addInput(new armory.logicnode.ObjectNode(this, "bridge_02"), 0);
|
||||
_Array_Object__001.addInput(new armory.logicnode.ObjectNode(this, "frankies_home"), 0);
|
||||
_Array_Object__001.addInput(new armory.logicnode.ObjectNode(this, "Plateforme_box"), 0);
|
||||
_Array_Object__001.addInput(new armory.logicnode.ObjectNode(this, "Platforme"), 0);
|
||||
_Array_Object__001.addOutputs([_ArrayLoop_001]);
|
||||
_Array_Object__001.addOutputs([new armory.logicnode.IntegerNode(this, 0)]);
|
||||
_ArrayLoop_001.addInput(_Array_Object__001, 0);
|
||||
@ -163,7 +163,7 @@ package arm.node;
|
||||
_Array_Object_.addInput(new armory.logicnode.ObjectNode(this, "Terrain"), 0);
|
||||
_Array_Object_.addInput(new armory.logicnode.ObjectNode(this, "bridge_01"), 0);
|
||||
_Array_Object_.addInput(new armory.logicnode.ObjectNode(this, "bridge_02"), 0);
|
||||
_Array_Object_.addInput(new armory.logicnode.ObjectNode(this, "Plateforme_box"), 0);
|
||||
_Array_Object_.addInput(new armory.logicnode.ObjectNode(this, "Platforme"), 0);
|
||||
_Array_Object_.addOutputs([_ArrayLoop]);
|
||||
_Array_Object_.addOutputs([new armory.logicnode.IntegerNode(this, 0)]);
|
||||
_ArrayLoop.addInput(_Array_Object_, 0);
|
||||
|
@ -37,6 +37,7 @@ package arm.node;
|
||||
_OnKeyboard_002.property0 = "Released";
|
||||
_OnKeyboard_002.property1 = "space";
|
||||
_OnKeyboard_002.addOutputs([new armory.logicnode.NullNode(this)]);
|
||||
var _SetCamera = new armory.logicnode.SetCameraNode(this);
|
||||
var _SetProperty_002 = new armory.logicnode.SetPropertyNode(this);
|
||||
var _IsTrue = new armory.logicnode.IsTrueNode(this);
|
||||
var _Merge = new armory.logicnode.MergeNode(this);
|
||||
@ -86,15 +87,8 @@ 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([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);
|
||||
_SetProperty_002.addOutputs([_SetCamera]);
|
||||
_SetCamera.addInput(_SetProperty_002, 0);
|
||||
_SetCamera.addInput(new armory.logicnode.ObjectNode(this, "Camera.001"), 0);
|
||||
_SetCamera.addOutputs([new armory.logicnode.NullNode(this)]);
|
||||
}
|
||||
|
@ -158,6 +158,10 @@ package arm.node;
|
||||
_OnMouse.property0 = "Down";
|
||||
_OnMouse.property1 = "left";
|
||||
_OnMouse.addOutputs([new armory.logicnode.NullNode(this)]);
|
||||
var _LookAt = new armory.logicnode.LookAtNode(this);
|
||||
_LookAt.addInput(new armory.logicnode.VectorNode(this, 0.0, 0.0, 0.0), 0);
|
||||
_LookAt.addInput(new armory.logicnode.VectorNode(this, 0.0, 0.0, 0.0), 0);
|
||||
_LookAt.addOutputs([new armory.logicnode.VectorNode(this, 0.0, 0.0, 0.0)]);
|
||||
var _SetVariable_003 = new armory.logicnode.SetVariableNode(this);
|
||||
var _OnMouse_001 = new armory.logicnode.OnMouseNode(this);
|
||||
_OnMouse_001.property0 = "Down";
|
||||
|
50
Sources/arm/node/NodeTree.hx
Normal file
50
Sources/arm/node/NodeTree.hx
Normal file
@ -0,0 +1,50 @@
|
||||
package arm.node;
|
||||
|
||||
@:keep class NodeTree extends armory.logicnode.LogicTree {
|
||||
|
||||
var functionNodes:Map<String, armory.logicnode.FunctionNode>;
|
||||
|
||||
var functionOutputNodes:Map<String, armory.logicnode.FunctionOutputNode>;
|
||||
|
||||
public function new() {
|
||||
super();
|
||||
name = "NodeTree";
|
||||
this.functionNodes = new Map();
|
||||
this.functionOutputNodes = new Map();
|
||||
notifyOnAdd(add);
|
||||
}
|
||||
|
||||
override public function add() {
|
||||
var _Print_001 = new armory.logicnode.PrintNode(this);
|
||||
var _SetProperty = new armory.logicnode.SetPropertyNode(this);
|
||||
var _SetLocation_002 = new armory.logicnode.SetLocationNode(this);
|
||||
var _Print = new armory.logicnode.PrintNode(this);
|
||||
_Print.addInput(new armory.logicnode.NullNode(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, _Print]);
|
||||
_Print.addInput(_GetLocation_001, 0);
|
||||
_Print.addOutputs([_SetLocation_002]);
|
||||
_SetLocation_002.addInput(_Print, 0);
|
||||
_SetLocation_002.addInput(new armory.logicnode.ObjectNode(this, ""), 0);
|
||||
_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, _Print_001]);
|
||||
_SetProperty.addInput(_Integer, 0);
|
||||
_SetProperty.addOutputs([_Print_001]);
|
||||
_Print_001.addInput(_SetProperty, 0);
|
||||
_Print_001.addInput(_Integer, 0);
|
||||
_Print_001.addOutputs([new armory.logicnode.NullNode(this)]);
|
||||
var _OnInit_001 = new armory.logicnode.OnInitNode(this);
|
||||
_OnInit_001.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)]);
|
||||
}
|
||||
}
|
@ -15,6 +15,78 @@ package arm.node;
|
||||
}
|
||||
|
||||
override public function add() {
|
||||
var _FunctionOutput_003 = new armory.logicnode.FunctionOutputNode(this);
|
||||
this.functionOutputNodes.set("_FunctionOutput_003", _FunctionOutput_003);
|
||||
var _Merge_004 = new armory.logicnode.MergeNode(this);
|
||||
var _SetVariable_010 = new armory.logicnode.SetVariableNode(this);
|
||||
var _Gate_013 = new armory.logicnode.GateNode(this);
|
||||
_Gate_013.property0 = "Greater";
|
||||
_Gate_013.property1 = 9.999999747378752e-05;
|
||||
var _Function_003 = new armory.logicnode.FunctionNode(this);
|
||||
this.functionNodes.set("_Function_003", _Function_003);
|
||||
_Function_003.addOutputs([_Gate_013]);
|
||||
var _Math_010 = new armory.logicnode.MathNode(this);
|
||||
_Math_010.property0 = "Subtract";
|
||||
_Math_010.property1 = "false";
|
||||
_Math_010.addInput(_Function_003, 1);
|
||||
_Math_010.addInput(_Function_003, 2);
|
||||
var _Math_013 = new armory.logicnode.MathNode(this);
|
||||
_Math_013.property0 = "Abs";
|
||||
_Math_013.property1 = "false";
|
||||
_Math_013.addInput(_Math_010, 0);
|
||||
_Math_013.addInput(new armory.logicnode.FloatNode(this, 0.5), 0);
|
||||
var _Gate_014 = new armory.logicnode.GateNode(this);
|
||||
_Gate_014.property0 = "Greater";
|
||||
_Gate_014.property1 = 9.999999747378752e-05;
|
||||
_Gate_014.addInput(_Gate_013, 1);
|
||||
_Gate_014.addInput(_Math_013, 0);
|
||||
var _Float_007 = new armory.logicnode.FloatNode(this);
|
||||
_Float_007.addInput(new armory.logicnode.FloatNode(this, 0.019999999552965164), 0);
|
||||
var _Math_015 = new armory.logicnode.MathNode(this);
|
||||
_Math_015.property0 = "Multiply";
|
||||
_Math_015.property1 = "false";
|
||||
_Math_015.addInput(_Float_007, 0);
|
||||
_Math_015.addInput(new armory.logicnode.FloatNode(this, -1.0), 0);
|
||||
var _SetVariable_012 = new armory.logicnode.SetVariableNode(this);
|
||||
_SetVariable_012.addInput(_Gate_014, 0);
|
||||
var _Float_006 = new armory.logicnode.FloatNode(this);
|
||||
_Float_006.addInput(new armory.logicnode.FloatNode(this, 0.0), 0);
|
||||
var _SetVariable_013 = new armory.logicnode.SetVariableNode(this);
|
||||
_SetVariable_013.addInput(_Gate_014, 1);
|
||||
_SetVariable_013.addInput(_Float_006, 0);
|
||||
var _Float_008 = new armory.logicnode.FloatNode(this);
|
||||
_Float_008.addInput(new armory.logicnode.FloatNode(this, 0.0), 0);
|
||||
_Float_008.addOutputs([_SetVariable_013]);
|
||||
_SetVariable_013.addInput(_Float_008, 0);
|
||||
_SetVariable_013.addOutputs([_Merge_004]);
|
||||
_Float_006.addOutputs([_SetVariable_010, _SetVariable_012, _SetVariable_013, _FunctionOutput_003]);
|
||||
_SetVariable_012.addInput(_Float_006, 0);
|
||||
_SetVariable_012.addInput(_Math_015, 0);
|
||||
_SetVariable_012.addOutputs([_Merge_004]);
|
||||
_Math_015.addOutputs([_SetVariable_012]);
|
||||
_Float_007.addOutputs([_Gate_013, _Gate_014, _SetVariable_010, _Math_015]);
|
||||
_Gate_014.addInput(_Float_007, 0);
|
||||
_Gate_014.addOutputs([_SetVariable_012]);
|
||||
_Gate_014.addOutputs([_SetVariable_013]);
|
||||
_Math_013.addOutputs([_Gate_014]);
|
||||
_Math_010.addOutputs([_Gate_013, _Math_013]);
|
||||
_Function_003.addOutputs([_Math_010]);
|
||||
_Function_003.addOutputs([_Math_010]);
|
||||
_Gate_013.addInput(_Function_003, 0);
|
||||
_Gate_013.addInput(_Math_010, 0);
|
||||
_Gate_013.addInput(_Float_007, 0);
|
||||
_Gate_013.addOutputs([_SetVariable_010]);
|
||||
_Gate_013.addOutputs([_Gate_014]);
|
||||
_SetVariable_010.addInput(_Gate_013, 0);
|
||||
_SetVariable_010.addInput(_Float_006, 0);
|
||||
_SetVariable_010.addInput(_Float_007, 0);
|
||||
_SetVariable_010.addOutputs([_Merge_004]);
|
||||
_Merge_004.addInput(_SetVariable_010, 0);
|
||||
_Merge_004.addInput(_SetVariable_012, 0);
|
||||
_Merge_004.addInput(_SetVariable_013, 0);
|
||||
_Merge_004.addOutputs([_FunctionOutput_003]);
|
||||
_FunctionOutput_003.addInput(_Merge_004, 0);
|
||||
_FunctionOutput_003.addInput(_Float_006, 0);
|
||||
var _FunctionOutput_004 = new armory.logicnode.FunctionOutputNode(this);
|
||||
this.functionOutputNodes.set("_FunctionOutput_004", _FunctionOutput_004);
|
||||
var _Merge_005 = new armory.logicnode.MergeNode(this);
|
||||
@ -93,15 +165,20 @@ package arm.node;
|
||||
_Merge_005.addOutputs([_FunctionOutput_004]);
|
||||
_FunctionOutput_004.addInput(_Merge_005, 0);
|
||||
_FunctionOutput_004.addInput(_Vector_012, 0);
|
||||
var _Print_001 = new armory.logicnode.PrintNode(this);
|
||||
var _SetProperty = new armory.logicnode.SetPropertyNode(this);
|
||||
var _SetLocation_002 = new armory.logicnode.SetLocationNode(this);
|
||||
var _Print = new armory.logicnode.PrintNode(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);
|
||||
_OnInit_001.addOutputs([_Print]);
|
||||
_Print.addInput(_OnInit_001, 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]);
|
||||
_GetLocation_001.addOutputs([_SetLocation_002, _Print]);
|
||||
_Print.addInput(_GetLocation_001, 0);
|
||||
_Print.addOutputs([_SetLocation_002]);
|
||||
_SetLocation_002.addInput(_Print, 0);
|
||||
_SetLocation_002.addInput(new armory.logicnode.ObjectNode(this, "Plateforme_box"), 0);
|
||||
_SetLocation_002.addInput(_GetLocation_001, 0);
|
||||
_SetLocation_002.addOutputs([_SetProperty]);
|
||||
_SetProperty.addInput(_SetLocation_002, 0);
|
||||
@ -109,86 +186,12 @@ package arm.node;
|
||||
_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]);
|
||||
_Integer.addOutputs([_SetProperty, _Print_001]);
|
||||
_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);
|
||||
var _SetVariable_010 = new armory.logicnode.SetVariableNode(this);
|
||||
var _Gate_013 = new armory.logicnode.GateNode(this);
|
||||
_Gate_013.property0 = "Greater";
|
||||
_Gate_013.property1 = 9.999999747378752e-05;
|
||||
var _Function_003 = new armory.logicnode.FunctionNode(this);
|
||||
this.functionNodes.set("_Function_003", _Function_003);
|
||||
_Function_003.addOutputs([_Gate_013]);
|
||||
var _Math_010 = new armory.logicnode.MathNode(this);
|
||||
_Math_010.property0 = "Subtract";
|
||||
_Math_010.property1 = "false";
|
||||
_Math_010.addInput(_Function_003, 1);
|
||||
_Math_010.addInput(_Function_003, 2);
|
||||
var _Math_013 = new armory.logicnode.MathNode(this);
|
||||
_Math_013.property0 = "Abs";
|
||||
_Math_013.property1 = "false";
|
||||
_Math_013.addInput(_Math_010, 0);
|
||||
_Math_013.addInput(new armory.logicnode.FloatNode(this, 0.5), 0);
|
||||
var _Gate_014 = new armory.logicnode.GateNode(this);
|
||||
_Gate_014.property0 = "Greater";
|
||||
_Gate_014.property1 = 9.999999747378752e-05;
|
||||
_Gate_014.addInput(_Gate_013, 1);
|
||||
_Gate_014.addInput(_Math_013, 0);
|
||||
var _Float_007 = new armory.logicnode.FloatNode(this);
|
||||
_Float_007.addInput(new armory.logicnode.FloatNode(this, 0.019999999552965164), 0);
|
||||
var _Math_015 = new armory.logicnode.MathNode(this);
|
||||
_Math_015.property0 = "Multiply";
|
||||
_Math_015.property1 = "false";
|
||||
_Math_015.addInput(_Float_007, 0);
|
||||
_Math_015.addInput(new armory.logicnode.FloatNode(this, -1.0), 0);
|
||||
var _SetVariable_012 = new armory.logicnode.SetVariableNode(this);
|
||||
_SetVariable_012.addInput(_Gate_014, 0);
|
||||
var _Float_006 = new armory.logicnode.FloatNode(this);
|
||||
_Float_006.addInput(new armory.logicnode.FloatNode(this, 0.0), 0);
|
||||
var _SetVariable_013 = new armory.logicnode.SetVariableNode(this);
|
||||
_SetVariable_013.addInput(_Gate_014, 1);
|
||||
_SetVariable_013.addInput(_Float_006, 0);
|
||||
var _Float_008 = new armory.logicnode.FloatNode(this);
|
||||
_Float_008.addInput(new armory.logicnode.FloatNode(this, 0.0), 0);
|
||||
_Float_008.addOutputs([_SetVariable_013]);
|
||||
_SetVariable_013.addInput(_Float_008, 0);
|
||||
_SetVariable_013.addOutputs([_Merge_004]);
|
||||
_Float_006.addOutputs([_SetVariable_010, _SetVariable_012, _SetVariable_013, _FunctionOutput_003]);
|
||||
_SetVariable_012.addInput(_Float_006, 0);
|
||||
_SetVariable_012.addInput(_Math_015, 0);
|
||||
_SetVariable_012.addOutputs([_Merge_004]);
|
||||
_Math_015.addOutputs([_SetVariable_012]);
|
||||
_Float_007.addOutputs([_Gate_013, _Gate_014, _SetVariable_010, _Math_015]);
|
||||
_Gate_014.addInput(_Float_007, 0);
|
||||
_Gate_014.addOutputs([_SetVariable_012]);
|
||||
_Gate_014.addOutputs([_SetVariable_013]);
|
||||
_Math_013.addOutputs([_Gate_014]);
|
||||
_Math_010.addOutputs([_Gate_013, _Math_013]);
|
||||
_Function_003.addOutputs([_Math_010]);
|
||||
_Function_003.addOutputs([_Math_010]);
|
||||
_Gate_013.addInput(_Function_003, 0);
|
||||
_Gate_013.addInput(_Math_010, 0);
|
||||
_Gate_013.addInput(_Float_007, 0);
|
||||
_Gate_013.addOutputs([_SetVariable_010]);
|
||||
_Gate_013.addOutputs([_Gate_014]);
|
||||
_SetVariable_010.addInput(_Gate_013, 0);
|
||||
_SetVariable_010.addInput(_Float_006, 0);
|
||||
_SetVariable_010.addInput(_Float_007, 0);
|
||||
_SetVariable_010.addOutputs([_Merge_004]);
|
||||
_Merge_004.addInput(_SetVariable_010, 0);
|
||||
_Merge_004.addInput(_SetVariable_012, 0);
|
||||
_Merge_004.addInput(_SetVariable_013, 0);
|
||||
_Merge_004.addOutputs([_FunctionOutput_003]);
|
||||
_FunctionOutput_003.addInput(_Merge_004, 0);
|
||||
_FunctionOutput_003.addInput(_Float_006, 0);
|
||||
_SetProperty.addOutputs([_Print_001]);
|
||||
_Print_001.addInput(_SetProperty, 0);
|
||||
_Print_001.addInput(_Integer, 0);
|
||||
_Print_001.addOutputs([new armory.logicnode.NullNode(this)]);
|
||||
var _SetVariable_015 = new armory.logicnode.SetVariableNode(this);
|
||||
var _CallFunction_012 = new armory.logicnode.CallFunctionNode(this);
|
||||
var _IsTrue_006 = new armory.logicnode.IsTrueNode(this);
|
||||
@ -342,7 +345,7 @@ package arm.node;
|
||||
_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.addInput(new armory.logicnode.ObjectNode(this, "Platforme"), 0);
|
||||
_HasContact.addOutputs([_Branch]);
|
||||
_Branch.addInput(_HasContact, 0);
|
||||
_Branch.addOutputs([_TranslateObject_002]);
|
||||
@ -370,14 +373,6 @@ package arm.node;
|
||||
_SetVariable_015.addOutputs([new armory.logicnode.NullNode(this)]);
|
||||
}
|
||||
|
||||
public function nextstep() {
|
||||
var functionNode = this.functionNodes["_Function_002"];
|
||||
functionNode.args = [];
|
||||
functionNode.run(0);
|
||||
return this.functionOutputNodes["_FunctionOutput_004"].result;
|
||||
}
|
||||
|
||||
|
||||
public function pas(arg0:Dynamic, arg1:Dynamic) {
|
||||
var functionNode = this.functionNodes["_Function_003"];
|
||||
functionNode.args = [];
|
||||
@ -387,4 +382,12 @@ package arm.node;
|
||||
return this.functionOutputNodes["_FunctionOutput_003"].result;
|
||||
}
|
||||
|
||||
|
||||
public function nextstep() {
|
||||
var functionNode = this.functionNodes["_Function_002"];
|
||||
functionNode.args = [];
|
||||
functionNode.run(0);
|
||||
return this.functionOutputNodes["_FunctionOutput_004"].result;
|
||||
}
|
||||
|
||||
}
|
BIN
ecureuil-149.blend
Normal file
BIN
ecureuil-149.blend
Normal file
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user