Skip to content

v0.2.2-spatial

Pre-release
Pre-release

Choose a tag to compare

@github-actions github-actions released this 24 Nov 13:12
· 1 commit to main since this release

Experimental. Spatial may change or be removed. The other four libraries are the same code as v0.2.0.

New

  • Travel fields over the tree. A large part's field keeps one distance for each open cube and brick, under 1 MB for a 450 × 49 × 450 m area, where a field per cell would take about 160 MB. A follower asks for the next point to fly to, and a body that reads several fields finds its places once.
  • Cost tables. A table of 256 entries says what each cost byte costs one kind of agent, so several kinds read one layer differently. In the Unity package, CostTable makes one from a danger weight and a fog weight. Costs work over counts and over the tree.
  • A faster search over the tree. Bricks are searched a ring of cells at a time, and the tree's default leeway is 1. With costs, the slowest route on a 300 m piece of the area went from 134 ms to 28 ms.
  • How it works. A new page explains each idea in plain words: wall distance, the tree, regions, routes, travel fields, cost tables and heightfields.

Fixed

  • The route search's heap could take a place out too early when its rank rose.
  • Sampling a field over counts had become slower since fields over the tree; it is back to the plain sample.

Changed

  • Over a tree a field has no per-cell Distance; check KeepsCells, and ask TryTravel and TryNext.
  • A field keeps the costs it was built with. Rebuild it when costs change; routes read the current costs.

Full Changelog: v0.2.1-spatial...v0.2.2-spatial