summaryrefslogtreecommitdiffhomepage
path: root/Racing-Game/4WheelCar/WeightCreation.gd
diff options
context:
space:
mode:
authorrealtradam <[email protected]>2020-03-19 03:32:54 -0400
committerrealtradam <[email protected]>2020-03-19 03:32:54 -0400
commitc7e8f17ba13d4c9e54764286367a26f25b049dc4 (patch)
tree6ed85dcd09186f9884b77d56c81f94136154577a /Racing-Game/4WheelCar/WeightCreation.gd
parent57c5f73d0d957dc426d922d591fa5a0dd1452892 (diff)
downloadoptimal-direction-c7e8f17ba13d4c9e54764286367a26f25b049dc4.tar.gz
optimal-direction-c7e8f17ba13d4c9e54764286367a26f25b049dc4.zip
fixed up file structure
Diffstat (limited to 'Racing-Game/4WheelCar/WeightCreation.gd')
-rw-r--r--Racing-Game/4WheelCar/WeightCreation.gd23
1 files changed, 0 insertions, 23 deletions
diff --git a/Racing-Game/4WheelCar/WeightCreation.gd b/Racing-Game/4WheelCar/WeightCreation.gd
deleted file mode 100644
index 6d6f607..0000000
--- a/Racing-Game/4WheelCar/WeightCreation.gd
+++ /dev/null
@@ -1,23 +0,0 @@
-extends Node
-
-
-# This script creates and attaches all "masses". This makes it possible
-# to simulate unbalanced weight distribution in a vehicle
-
-
-# Called when the node enters the scene tree for the first time.
-func _ready():
- createWeight([0,30,30])
- pass # Replace with function body.
-
-
-# Called every frame. 'delta' is the elapsed time since the previous frame.
-#func _process(delta):
-# pass
-
-func createWeight(dataArray):
- var weighttemp_resource = load("res://4WheelCar/Weight.tscn")
- var weighttemp = weighttemp_resource.instance()
- weighttemp.set_position(Vector2(dataArray[0],dataArray[1]))
- add_child(weighttemp)
- weighttemp.initVars(dataArray)