feat: package pantry crisis demo
This commit is contained in:
@@ -327,6 +327,17 @@ func set_target_position(pos: Vector3) -> void:
|
||||
debug_log("New target: %s Path points: %s" % [pos, current_path.size()])
|
||||
|
||||
|
||||
func stop_travel() -> void:
|
||||
path_request_id += 1
|
||||
current_path = PackedVector3Array()
|
||||
path_index = 0
|
||||
current_target = Vector3.INF
|
||||
path_pending = false
|
||||
has_reported_arrival = true
|
||||
stuck_time = 0.0
|
||||
velocity = Vector3.ZERO
|
||||
|
||||
|
||||
func _physics_process(delta: float) -> void:
|
||||
if is_dead_visual:
|
||||
velocity = Vector3.ZERO
|
||||
|
||||
Reference in New Issue
Block a user