frankie-on-platform/armory3d/Sources/arm/node/TrackCamera2.hx

158 lines
8.0 KiB
Haxe
Raw Normal View History

2022-07-24 16:34:50 +02:00
package arm.node;
@:keep class TrackCamera2 extends armory.logicnode.LogicTree {
var functionNodes:Map<String, armory.logicnode.FunctionNode>;
var functionOutputNodes:Map<String, armory.logicnode.FunctionOutputNode>;
public function new() {
super();
name = "TrackCamera2";
this.functionNodes = new Map();
this.functionOutputNodes = new Map();
notifyOnAdd(add);
}
override public function add() {
var _SetProperty_001 = new armory.logicnode.SetPropertyNode(this);
var _OnInit = new armory.logicnode.OnInitNode(this);
_OnInit.addOutputs([_SetProperty_001]);
_SetProperty_001.addInput(_OnInit, 0);
_SetProperty_001.addInput(new armory.logicnode.ObjectNode(this, "Camera.001"), 0);
_SetProperty_001.addInput(new armory.logicnode.StringNode(this, "saut_on"), 0);
var _Boolean_001 = new armory.logicnode.BooleanNode(this);
_Boolean_001.addInput(new armory.logicnode.BooleanNode(this, false), 0);
_Boolean_001.addOutputs([_SetProperty_001]);
_SetProperty_001.addInput(_Boolean_001, 0);
_SetProperty_001.addOutputs([new armory.logicnode.NullNode(this)]);
var _SetProperty_005 = new armory.logicnode.SetPropertyNode(this);
var _TranslateObject = new armory.logicnode.TranslateObjectNode(this);
var _IsTrue_003 = new armory.logicnode.IsTrueNode(this);
var _Gate = new armory.logicnode.GateNode(this);
_Gate.property0 = "Or";
_Gate.property1 = 9.999999747378752e-05;
var _IsFalse_003 = new armory.logicnode.IsFalseNode(this);
var _OnUpdate_003 = new armory.logicnode.OnUpdateNode(this);
_OnUpdate_003.property0 = "Update";
_OnUpdate_003.addOutputs([_IsFalse_003]);
_IsFalse_003.addInput(_OnUpdate_003, 0);
var _GetProperty_004 = new armory.logicnode.GetPropertyNode(this);
_GetProperty_004.addInput(new armory.logicnode.ObjectNode(this, "Camera.001"), 0);
_GetProperty_004.addInput(new armory.logicnode.StringNode(this, "saut_on"), 0);
_GetProperty_004.addOutputs([_IsFalse_003]);
_IsFalse_003.addInput(_GetProperty_004, 0);
_IsFalse_003.addOutputs([_Gate]);
_Gate.addInput(_IsFalse_003, 0);
var _Compare_002 = new armory.logicnode.CompareNode(this);
_Compare_002.property0 = "Greater Equal";
_Compare_002.property1 = 9.999999747378752e-05;
var _SeparateXYZ_001 = new armory.logicnode.SeparateVectorNode(this);
var _GetVelocity_002 = new armory.logicnode.GetVelocityNode(this);
_GetVelocity_002.addInput(new armory.logicnode.ObjectNode(this, "Joueur"), 0);
_GetVelocity_002.addOutputs([_SeparateXYZ_001]);
_GetVelocity_002.addOutputs([new armory.logicnode.VectorNode(this, 0.0, 0.0, 0.0)]);
_SeparateXYZ_001.addInput(_GetVelocity_002, 0);
_SeparateXYZ_001.addOutputs([new armory.logicnode.FloatNode(this, 0.0)]);
_SeparateXYZ_001.addOutputs([new armory.logicnode.FloatNode(this, 0.0)]);
var _Compare_003 = new armory.logicnode.CompareNode(this);
_Compare_003.property0 = "Less Equal";
_Compare_003.property1 = 9.999999747378752e-05;
_Compare_003.addInput(_SeparateXYZ_001, 2);
var _Math_001 = new armory.logicnode.MathNode(this);
_Math_001.property0 = "Multiply";
_Math_001.property1 = "false";
var _Float_001 = new armory.logicnode.FloatNode(this);
_Float_001.addInput(new armory.logicnode.FloatNode(this, 5.0), 0);
_Float_001.addOutputs([_Math_001, _Compare_002]);
_Math_001.addInput(_Float_001, 0);
_Math_001.addInput(new armory.logicnode.FloatNode(this, -1.0), 0);
_Math_001.addOutputs([_Compare_003]);
_Compare_003.addInput(_Math_001, 0);
_Compare_003.addOutputs([_Gate]);
_SeparateXYZ_001.addOutputs([_Compare_002, _Compare_003]);
_Compare_002.addInput(_SeparateXYZ_001, 2);
_Compare_002.addInput(_Float_001, 0);
_Compare_002.addOutputs([_Gate]);
_Gate.addInput(_Compare_002, 0);
_Gate.addInput(_Compare_003, 0);
_Gate.addOutputs([_IsTrue_003]);
_Gate.addOutputs([new armory.logicnode.NullNode(this)]);
_IsTrue_003.addInput(_Gate, 0);
_IsTrue_003.addInput(new armory.logicnode.BooleanNode(this, true), 0);
_IsTrue_003.addOutputs([_TranslateObject]);
_TranslateObject.addInput(_IsTrue_003, 0);
_TranslateObject.addInput(new armory.logicnode.ObjectNode(this, "Camera.001"), 0);
var _Vector = new armory.logicnode.VectorNode(this);
var _Float = new armory.logicnode.FloatNode(this);
_Float.addInput(new armory.logicnode.FloatNode(this, 5.0), 0);
var _Math = new armory.logicnode.MathNode(this);
_Math.property0 = "Multiply";
_Math.property1 = "false";
_Math.addInput(_Float, 0);
_Math.addInput(new armory.logicnode.FloatNode(this, -1.0), 0);
var _Vector_001 = new armory.logicnode.VectorNode(this);
_Vector_001.addInput(_Math, 0);
_Vector_001.addInput(new armory.logicnode.FloatNode(this, 0.0), 0);
_Vector_001.addInput(new armory.logicnode.FloatNode(this, 0.0), 0);
var _TranslateObject_001 = new armory.logicnode.TranslateObjectNode(this);
var _IsTrue_004 = new armory.logicnode.IsTrueNode(this);
var _Merge = new armory.logicnode.MergeNode(this);
var _OnContact_004 = new armory.logicnode.OnContactNode(this);
_OnContact_004.property0 = "Begin";
_OnContact_004.addInput(new armory.logicnode.ObjectNode(this, "Joueur"), 0);
_OnContact_004.addInput(new armory.logicnode.ObjectNode(this, "Terrain"), 0);
_OnContact_004.addOutputs([_Merge]);
_Merge.addInput(_OnContact_004, 0);
var _OnContact_003 = new armory.logicnode.OnContactNode(this);
_OnContact_003.property0 = "Begin";
_OnContact_003.addInput(new armory.logicnode.ObjectNode(this, "Joueur"), 0);
_OnContact_003.addInput(new armory.logicnode.ObjectNode(this, "bridge_01"), 0);
_OnContact_003.addOutputs([_Merge]);
_Merge.addInput(_OnContact_003, 0);
var _OnContact_002 = new armory.logicnode.OnContactNode(this);
_OnContact_002.property0 = "Begin";
_OnContact_002.addInput(new armory.logicnode.ObjectNode(this, "Joueur"), 0);
_OnContact_002.addInput(new armory.logicnode.ObjectNode(this, "bridge_02"), 0);
_OnContact_002.addOutputs([_Merge]);
_Merge.addInput(_OnContact_002, 0);
_Merge.addOutputs([_IsTrue_004]);
_IsTrue_004.addInput(_Merge, 0);
var _GetProperty_003 = new armory.logicnode.GetPropertyNode(this);
_GetProperty_003.addInput(new armory.logicnode.ObjectNode(this, "Camera.001"), 0);
_GetProperty_003.addInput(new armory.logicnode.StringNode(this, "saut_on"), 0);
_GetProperty_003.addOutputs([_IsTrue_004]);
_IsTrue_004.addInput(_GetProperty_003, 0);
_IsTrue_004.addOutputs([_TranslateObject_001]);
_TranslateObject_001.addInput(_IsTrue_004, 0);
_TranslateObject_001.addInput(new armory.logicnode.ObjectNode(this, "Camera.001"), 0);
_TranslateObject_001.addInput(_Vector_001, 0);
var _SetProperty_006 = new armory.logicnode.SetPropertyNode(this);
_SetProperty_006.addInput(_TranslateObject_001, 0);
_SetProperty_006.addInput(new armory.logicnode.ObjectNode(this, ""), 0);
_SetProperty_006.addInput(new armory.logicnode.StringNode(this, "saut_on"), 0);
var _Boolean_005 = new armory.logicnode.BooleanNode(this);
_Boolean_005.addInput(new armory.logicnode.BooleanNode(this, false), 0);
_Boolean_005.addOutputs([_SetProperty_006]);
_SetProperty_006.addInput(_Boolean_005, 0);
_SetProperty_006.addOutputs([new armory.logicnode.NullNode(this)]);
_TranslateObject_001.addOutputs([_SetProperty_006]);
_Vector_001.addOutputs([_TranslateObject_001]);
_Math.addOutputs([_Vector_001]);
_Float.addOutputs([_Math, _Vector]);
_Vector.addInput(_Float, 0);
_Vector.addInput(new armory.logicnode.FloatNode(this, 0.0), 0);
_Vector.addInput(new armory.logicnode.FloatNode(this, 0.0), 0);
_Vector.addOutputs([_TranslateObject]);
_TranslateObject.addInput(_Vector, 0);
_TranslateObject.addOutputs([_SetProperty_005]);
_SetProperty_005.addInput(_TranslateObject, 0);
_SetProperty_005.addInput(new armory.logicnode.ObjectNode(this, ""), 0);
_SetProperty_005.addInput(new armory.logicnode.StringNode(this, "saut_on"), 0);
var _Boolean_004 = new armory.logicnode.BooleanNode(this);
_Boolean_004.addInput(new armory.logicnode.BooleanNode(this, true), 0);
_Boolean_004.addOutputs([_SetProperty_005]);
_SetProperty_005.addInput(_Boolean_004, 0);
_SetProperty_005.addOutputs([new armory.logicnode.NullNode(this)]);
}
}