pretty happy with basic AI behavior

This commit is contained in:
derek
2025-04-29 11:02:12 -05:00
parent ccb4781460
commit a287710a7b
10 changed files with 86 additions and 75 deletions

View File

@@ -17,7 +17,8 @@ func _on_body_exited(body: Node3D) -> void:
if level_control.gamemode.die_on_leaving_bounds == true:
get_tree().current_scene.die()
else:
body.global_position = body.last_ground_pos + Vector3(0,10,0)
body.velocity = Vector3.ZERO
body.global_position = body.last_ground_pos + Vector3(0,.1,0)
func toggle_collision(collision_state):
check_collision = collision_state