PathFindService

Description

Pathfinding service.

Functions

    GetPath(startPoint,terminalPoint)
    Calculates path coordinates. Input the start point and the end point, and it will return a path object recording way points.

    CalculateNavMesh(agentRadius,agentHeight,agentSlope)
    Calculates the navigation mesh according to the given parameters. It needs to build the navigation mesh by this function before the normal use of Avatar:MoveTo.