diff options
Diffstat (limited to '')
-rw-r--r-- | Scripts/car_behaviour.gd | 6 | ||||
-rw-r--r-- | Scripts/scene_control.gd | 3 |
2 files changed, 5 insertions, 4 deletions
diff --git a/Scripts/car_behaviour.gd b/Scripts/car_behaviour.gd index dfc9ea4..c90fe05 100644 --- a/Scripts/car_behaviour.gd +++ b/Scripts/car_behaviour.gd @@ -1,10 +1,10 @@ extends StaticBody2D # editor variables -@export var max_speed = 350 +@export var max_speed = 3500 @export var steer_force = 0.1 -@export var look_ahead = 100 -@export var num_rays = 8 +@export var look_ahead = 75 +@export var num_rays = 32 # context array var ray_directions = [] diff --git a/Scripts/scene_control.gd b/Scripts/scene_control.gd index 99bc3a2..9f231e0 100644 --- a/Scripts/scene_control.gd +++ b/Scripts/scene_control.gd @@ -3,7 +3,8 @@ extends Node class_name SceneControl @onready var path : Path2D = $Path2D -@onready var path_follow : PathFollow2D = $Path2D/PathFollow2D + +@on#ready var path_follow : PathFollow2D = $Path2D/PathFollow2D func get_path_direction(pos): |