My navegation map is not working

Godot Version

godot 4.2 standard linux

Question

My pathfinder is not working with real time calls, after a day without work it backs to work for no reason it backs to work, just when i call it on ready, when i call it in real time just do not work.

code

extends CharacterBody3D

var movement_speed: float = 2.0
var movement_target_position: Vector3 = Vector3(-3.0,0.0,2.0)

@onready var navigation_agent: NavigationAgent3D = $NavigationAgent3D
func _ready():
	pass
	#update_target_position(movement_target_position)
func _input(event):
	if event is InputEventMouseButton:
		update_target_position(movement_target_position)
func _process(_delta):
	var mext_location = navigation_agent.get_next_path_position()
	
	var current_position = global_position
	var new_velocity = current_position.direction_to(mext_location)
	print(navigation_agent.target_position)
	velocity = velocity.move_toward(new_velocity,.25)
	move_and_slide()
func  update_target_position(target_):
	navigation_agent.target_position = target_