diff options
Diffstat (limited to 'Racing-Game/4WheelCar/Wheels/Wheel.gd')
| -rw-r--r-- | Racing-Game/4WheelCar/Wheels/Wheel.gd | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Racing-Game/4WheelCar/Wheels/Wheel.gd b/Racing-Game/4WheelCar/Wheels/Wheel.gd index 49024fb..d25cec5 100644 --- a/Racing-Game/4WheelCar/Wheels/Wheel.gd +++ b/Racing-Game/4WheelCar/Wheels/Wheel.gd @@ -24,10 +24,10 @@ func _ready(): func _process(_delta): pass -func initVars(dataArray): +func initVars(locX,locY): # #---Creating and attaching pinjoint to wheel var tempA = PinJoint2D.new() - tempA.set_position(Vector2(dataArray[0],dataArray[1])) + tempA.set_position(Vector2(locX,locY)) tempA.set_node_a(get_path()) tempA.set_node_b(get_parent().get_parent().get_path()) tempA.softness = 0 |
