Function FollowerEntity.Teleport

Teleport (Vector3 newPosition, bool clearPath=true)

Instantly move the agent to a new position.

Public
void Teleport (

Vector3

newPosition

bool

clearPath=true

)

Instantly move the agent to a new position.

The current path will be cleared by default.

This method is preferred for long distance teleports. If you only move the agent a very small distance (so that it is reasonable that it can keep its current path), then setting the position property is preferred. Setting the position property very far away from the agent could cause the agent to fail to move the full distance, as it can get blocked by the navmesh.

See

Works similarly to Unity's NavmeshAgent.Warp.

position

SearchPath