Interface NodeCostProcessor

All Superinterfaces:
Processor

public interface NodeCostProcessor extends Processor
A processor that calculates a specific cost contribution for traversing to a node (PathPosition). The costs returned by all registered NodeCostProcessors for a given node transition are typically summed up by the pathfinding pipeline along with the base transition cost.
  • Method Details

    • calculateCostContribution

      Cost calculateCostContribution(NodeEvaluationContext context)
      Calculates the cost contribution of this processor for the transition to the current node (PathPosition).
      Parameters:
      context - The evaluation context for the current node.
      Returns:
      A Cost object representing the cost contribution. This value will be added to other costs for this transition.