src/etc/PathPlanner.js
/**
	* Creates a new task for pathfinding and adds the task to the queue.
	*
	* @param {Vehicle} vehicle - The vehicle for which the path is to be found.
	* @param {Vector3} from - The start point of the path.
	* @param {Vector3} to - The target point of the path.
	* @param {Function} callback - The callback which is called after the task is finished.
	*/
Creates a new task for pathfinding and adds the task to the queue.
@param {Vehicle} vehicle - The vehicle for which the path is to be found.
@param {Vector3} from - The start point of the path.
@param {Vector3} to - The target point of the path.
@param {Function} callback - The callback which is called after the task is finished.
Creates a new task for pathfinding and adds the task to the queue . @param { Vehicle } vehicle - The vehicle for which the path is to be found . @param { Vector3 } from - The start point of the path . @param { Vector3 } to - The target point of the path . @param { Function } callback - The callback which is called after the task is finished .
findPath( vehicle, from, to, callback ) {
		const task = new PathPlannerTask( this, vehicle, from, to, callback );
		this.taskQueue.enqueue( task );
	}
findPath ( vehicle , from , to , callback ) { const task = new PathPlannerTask ( this , vehicle , from , to , callback ) ; this . taskQueue . enqueue ( task ) ; }
Creates a new task for pathfinding and adds the task to the queue.
Creates a new task for pathfinding and adds the task to the queue .