Methods
findPathBetweenPx(start, target, config) → {Array.<PathNode>}
The 2 vectors must point to the position in pixels
Parameters:
Name | Type | Description |
---|---|---|
start |
Phaser.Math.Vector2 |
The start position in pixels |
target |
Phaser.Math.Vector2 |
The target position in tile unit |
config |
PathfindingConfig |
Extra parameters to configure the pathfinder |
- Source:
findPathBetweenTl(start, target, config) → {Array.<PathNode>}
The 2 vectors must point to the position in tile unit not in px
Parameters:
Name | Type | Description |
---|---|---|
start |
Phaser.Math.Vector2 |
The start position in tile unit |
target |
Phaser.Math.Vector2 |
The target position in tile unit |
config |
PathfindingConfig |
Extra parameters to configure the pathfinder |
- Source: