pretty happy with basic AI behavior
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user