How to use the three-pathfinding.createZone 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 NikolaySuslov / livecodingspace / public / vwf / model / aframe / extras / aframe-extras.pathfinding.js View on Github external
setNavMeshGeometry: function setNavMeshGeometry(geometry) {
    this.navMesh = new THREE.Mesh(geometry);
    pathfinder.setZoneData(ZONE, Path.createZone(geometry));
    Array.from(this.agents).forEach(function (agent) {
      return agent.updateNavLocation();
    });
  },

three-pathfinding

Navigation mesh toolkit for three.js, based on PatrolJS

MIT
Latest version published 1 year ago

Package Health Score

61 / 100
Full package analysis