Find Path

Scene
Lado del servidor
Disponible en PC y móvil

Create a path from the start point to the end point, will avoid obstacles, and can be used for AI pathfinding

Declaración

async func FindPath(startPosition Vector3, endPosition Vector3, out var isSuccess bool, out var pathPoints List<Vector3>)
go

Parámetros

Entrada

Nombre Tipo Descripción
Start Position Vector3 Starting point coordinate
End Position Vector3 End point coordinate

Afuera

Nombre Tipo Descripción
Is Success Bool Whether the pathfinding path is successfully established
Path Points ListT_Vector3 Path point collection