Comment changes
This commit is contained in:
+1
-1
@@ -65,7 +65,7 @@ function getNode(pos, initialize=true) {
|
|||||||
targetLayer = 1 - targetLayer;
|
targetLayer = 1 - targetLayer;
|
||||||
const neighbor = getNode({...neighborPos, layer: targetLayer}, false);
|
const neighbor = getNode({...neighborPos, layer: targetLayer}, false);
|
||||||
|
|
||||||
// TODO We currently assume a cost of one for all transitions. Change this for 5/10/5 or difficult terrain support
|
// TODO We currently assume a cost of one or two for all transitions. Change this for difficult terrain support
|
||||||
let edgeCost = 1;
|
let edgeCost = 1;
|
||||||
if (isDiagonal) {
|
if (isDiagonal) {
|
||||||
// We charge 0.0001 more for edges to avoid unnecessary diagonal steps
|
// We charge 0.0001 more for edges to avoid unnecessary diagonal steps
|
||||||
|
|||||||
Reference in New Issue
Block a user