summaryrefslogtreecommitdiffhomepage
path: root/Racing-Game/4WheelCar/Skid/BRLine.gd
diff options
context:
space:
mode:
authorrealtradam <[email protected]>2020-03-15 18:55:00 -0400
committerrealtradam <[email protected]>2020-03-15 18:55:00 -0400
commit5a33ed9381e43b50d56f2ef7f149baef83edcf7d (patch)
tree0c5f39958474ea32e5293324dce0ec398e2d39c2 /Racing-Game/4WheelCar/Skid/BRLine.gd
parentfeb18d37762eb8f4414625175576f8fe9debd992 (diff)
downloadoptimal-direction-5a33ed9381e43b50d56f2ef7f149baef83edcf7d.tar.gz
optimal-direction-5a33ed9381e43b50d56f2ef7f149baef83edcf7d.zip
code cleaned up, #6 fixed
Diffstat (limited to 'Racing-Game/4WheelCar/Skid/BRLine.gd')
-rw-r--r--Racing-Game/4WheelCar/Skid/BRLine.gd30
1 files changed, 0 insertions, 30 deletions
diff --git a/Racing-Game/4WheelCar/Skid/BRLine.gd b/Racing-Game/4WheelCar/Skid/BRLine.gd
deleted file mode 100644
index 16578e3..0000000
--- a/Racing-Game/4WheelCar/Skid/BRLine.gd
+++ /dev/null
@@ -1,30 +0,0 @@
-extends Line2D
-
-# Declare member variables here. Examples:
-# var a = 2
-# var b = "text"
-var tempnode = 0
-var on = true
-
-# Called when the node enters the scene tree for the first time.
-func _ready():
- print("ready")
- tempnode = get_node("../Cars/4WheelCar/CarBody/Wheels/BRWheel")
- clear_points()
- pass # Replace with function body.
-
-# Called every frame. 'delta' is the elapsed time since the previous frame.
-func _process(delta):
- pass
-
-func _on_BRWheel_slip():
- while on:
- print("slip2")
- add_point(tempnode.get_global_position())
-
-
-func _on_BRWheel_end():
- on = false
- print("duplicated")
- var duplication = duplicate(13)
- duplication.request_ready()