medium10 pts · first answer countsgame-architecturepathfinding
Octile distance on a grid
On an 8-way grid, straight steps cost 1 and diagonal steps cost √2. From (0,0) to (5,3) with no walls, what is the shortest path cost?
Discussion 0
Join free to post in the discussion.
Related questions
- Variable and fixed timestepsGame Developer
- Jump pressed just before landingGame Developer
- Jumping just after leaving a ledgeGame Developer
- Why games pool objectsGame Developer
- Decoupling achievements from combatGame Developer
- A flying, swimming, shooting enemyGame Developer
- Enemy with patrol, chase and attackGame Developer
- What to put in a save fileGame Developer