Path Options Introduction
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:
- The
initiatePathTo
method variants now take aPathObject
instance instead of a boolean forbestEffort
, best effort is now defined inPathOptions
viatargetingStrategy(PathOptions.TargetingStrategy.bestEffort)
- The interface property
bound()
was introduced oncom.extollit.gaming.ai.path.model.IPathingEntity
, implement to returnfalse
to remain backward compatible.