get weights

This block is part of the pathfinding group and was last modified in core v10.4.28.

get weights v10.4.28

In pins 6 + flow
  • flow
    flow
  • tiles required
    array

    Array [{ state (String), x (Number), y (Number) }]

  • width required
    number
  • height required
    number
  • path required
    array

    Array [x_y (String), x_y (String)]

  • finder
    value

    The algorithm to use, currently supported are: AStarFinder, BestFirstFinder, BreadthFirstFinder, DijkstraFinder, IDAStarFinder, JumpPointFinder, OrthogonalJumpPointFinder, BiAStarFinder, BiBestFirstFinder, BiBreadthFirstFinder, BiDijkstraFinder

    Default BiAStarFinder

  • finder options
    object
Out pins 3 + flow
  • flow
    flow
  • success
    condition
  • error
    value
  • weights
    array

A typical wiring for get weights: a function trigger starts the flow; with values feeds the tiles pin; number feeds the width pin; number feeds the height pin; with values feeds the path pin; the flow out pin feeds debug.

Studio canvas example for the get weights block: typical wiring for get weights.

Version history

Introduced in v10.4.28.

Service documentation

External API reference This block wraps a third-party service. Click here for the service's own documentation of the underlying endpoint.
Back to pathfinding Return to the main group to view all sub-groups Back to pathfinding Return to the group to view all blocks within this group