summaryrefslogtreecommitdiffhomepage
path: root/Racing-Game/4WheelCar/Weight/Weight.gd
diff options
context:
space:
mode:
Diffstat (limited to 'Racing-Game/4WheelCar/Weight/Weight.gd')
-rw-r--r--Racing-Game/4WheelCar/Weight/Weight.gd6
1 files changed, 3 insertions, 3 deletions
diff --git a/Racing-Game/4WheelCar/Weight/Weight.gd b/Racing-Game/4WheelCar/Weight/Weight.gd
index ea9e615..6db46fa 100644
--- a/Racing-Game/4WheelCar/Weight/Weight.gd
+++ b/Racing-Game/4WheelCar/Weight/Weight.gd
@@ -10,11 +10,11 @@ func _ready():
#func _process(delta):
# pass
-func initVars(dataArray):
+func initVars(locX,locY,Mass):
# #---Creating and attaching pinjoint to wheel
- mass = dataArray[2]
+ mass = Mass
var tempA = PinJoint2D.new()
- tempA.set_position(Vector2(dataArray[0],dataArray[1]))
+ tempA.set_position(Vector2(locX,locY))
print(get_parent().get_parent().get_path())
tempA.set_node_a(get_path())
tempA.set_node_b(get_parent().get_parent().get_path())