UNPKG

hytopia

Version:

The HYTOPIA SDK makes it easy for developers to create massively multiplayer games using JavaScript or TypeScript.

32 lines (23 loc) 1.28 kB
<!-- Do not edit this file. It is automatically generated by API Documenter. --> [Home](./index.md) &gt; [server](./server.md) &gt; [PathfindingOptions](./server.pathfindingoptions.md) ## PathfindingOptions type Options for `PathfindingEntityController.pathfind`<!-- -->. Use for: configuring a single pathfinding request. Do NOT use for: per-tick recalculation; call `pathfind` sparingly. \*\*Category:\*\* Controllers **Signature:** ```typescript export type PathfindingOptions = { debug?: boolean; maxFall?: number; maxJump?: number; maxOpenSetIterations?: number; pathfindAbortCallback?: PathfindAbortCallback; pathfindCompleteCallback?: PathfindCompleteCallback; verticalPenalty?: number; waypointMoveCompleteCallback?: WaypointMoveCompleteCallback; waypointMoveSkippedCallback?: WaypointMoveSkippedCallback; waypointStoppingDistance?: number; waypointTimeoutMs?: number; }; ``` **References:** [PathfindAbortCallback](./server.pathfindabortcallback.md)<!-- -->, [PathfindCompleteCallback](./server.pathfindcompletecallback.md)<!-- -->, [WaypointMoveCompleteCallback](./server.waypointmovecompletecallback.md)<!-- -->, [WaypointMoveSkippedCallback](./server.waypointmoveskippedcallback.md)