Hello guys,

I'm trying to teleport a NavigationAgent3D to a specific position. Unfortunately if I set the global position of the parent node (a CharacterBody3D node), the agent internal position isn't updated, so if I set the TargetPosition of the agent he recalculates the path from his last position.

Do you have an idea to achieve this? Thanks.

  • Ok so I found the answer by checking godot source code.

    The start position of the agent is the position of the parent node. Be careful if you have an interpolation script (in my case it was breaking the teleportation).

Ok so I found the answer by checking godot source code.

The start position of the agent is the position of the parent node. Be careful if you have an interpolation script (in my case it was breaking the teleportation).