How to use the three-pathfinding.Pathfinding function in three-pathfinding

To help you get started, we’ve selected a few three-pathfinding examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github donmccurdy / aframe-extras / src / pathfinding / system.js View on Github external
const { Pathfinding } = require('three-pathfinding');

const pathfinder = new Pathfinding();
const ZONE = 'level';

/**
 * nav
 *
 * Pathfinding system, using PatrolJS.
 */
module.exports = AFRAME.registerSystem('nav', {
  init: function () {
    this.navMesh = null;
    this.agents = new Set();
  },

  /**
   * @param {THREE.Geometry} geometry
   */
github mozilla / hubs / src / systems / nav.js View on Github external
init: function() {
    this.pathfinder = new Pathfinding();
  },

three-pathfinding

Navigation mesh toolkit for three.js, based on PatrolJS

MIT
Latest version published 5 months ago

Package Health Score

74 / 100
Full package analysis