Skip to content

Path Options Introduction

Compare
Choose a tag to compare
@MadMartian MadMartian released this 15 Mar 21:53
· 30 commits to master since this release

Introducing path options, control how to determine a destination that is reachable from an arbitrary selection, this makes it possible to choose a random target up in the air for ground-based entities and have the path-finder select the nearest reachable location below it as an alternative to the best effort algorithm.

Additionally, this release includes rudimentary support for handling path-finding for entities that are constrained by an external force (e.g. a pathing entity that is being hauled by some other entity via a rope or chain).

See the README for full details.

NOTE: This release introduces breaking changes:

  1. The initiatePathTo method variants now take a PathObject instance instead of a boolean for bestEffort, best effort is now defined in PathOptions via targetingStrategy(PathOptions.TargetingStrategy.bestEffort)
  2. The interface property bound() was introduced on com.extollit.gaming.ai.path.model.IPathingEntity, implement to return false to remain backward compatible.