diff options
Diffstat (limited to '')
-rw-r--r-- | Scripts/car_behaviour.gd | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/Scripts/car_behaviour.gd b/Scripts/car_behaviour.gd index 03546d3..2ef9fb9 100644 --- a/Scripts/car_behaviour.gd +++ b/Scripts/car_behaviour.gd @@ -1,4 +1,4 @@ -extends StaticBody2D +extends CharacterBody2D # editor variables @export var max_speed = 300 @@ -14,7 +14,6 @@ var interest = [] var danger = [] var chosen_dir = Vector2.ZERO -var velocity = Vector2.ZERO var current_speed = 0 @@ -26,7 +25,6 @@ func _ready(): for i in num_rays: var angle = i * 2 * PI / num_rays ray_directions[i] = Vector2.RIGHT.rotated(angle) - print(ray_directions) func _physics_process(delta): if not driving: |