gamvas.AStarGridNode

Description

The node information of a gamvas.AStarGrid map

Summary
gamvas.AStarGridNodeThe node information of a gamvas.AStarGrid map
Variables
positionThe position information in the grid as gamvas.Vector2D

Variables

position

The position information in the grid as gamvas.Vector2D

Note

Example

var path = myAStarGrid.find(0, 0, 10, 15);
if (path.length) {
   console.log('First position: '+path[0].position.x+', '+path[0].position.y);
}
A class to simplify A* pathfinding on a 2x2 grid with a optional height field
A 2D vector class
Close