func _physics_process(delta):
var current_location = global_transform.origin
var next_location = nav_agent.get_next_path_position()
var new_velocity = (next_location - current_location)normalized() * max_speed
line 4 is returning the error message in the title. If i remove normalized(), its fine. I dont understand, can you not use normalize inside variable declaration?