Basics
Guides
API Reference
Basics
Guides
API Reference
[15:7] extends: DiagonalHeuristic
Wraps FXGL's OctileDistance heuristic (com.almasb.fxgl.pathfinding.heuristic.OctileDistance), the diagonal-aware cost function used by A* in 8-direction mode. Extends DiagonalHeuristic, so it carries both the base weight and the sqrt(2)-weighted diagonal weight.
OctileDistance (int Weight = -1)
Creates a new OctileDistance heuristic.
Weight is the base weight (default 10 when -1).adopt (object Ajo)
Wraps an existing OctileDistance AussomJavaObject.
getWeight ()
getDiagonalWeight ()
getCost (int StartX, int StartY, int TargetX, int TargetY)

Aussom
Write once. Embed everywhere.
Copyright 2026 Austin Lehman. All rights reserved.