Merge pull request #1893 from thecodingmachine/fix-path-finding-diagonals

disable corner cutting
This commit is contained in:
David Négrier 2022-02-17 15:34:40 +01:00 committed by GitHub
commit 5b05589d32
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -18,6 +18,7 @@ export class PathfindingManager {
this.easyStar = new EasyStar.js();
this.easyStar.enableDiagonals();
this.easyStar.disableCornerCutting();
this.grid = collisionsGrid;
this.tileDimensions = tileDimensions;