Plugin : graph movement

Author:Rex.Rainbow

Download

Properties

Path mode

  • Geometry of moving path.
    • Options : ["Random","A*","Line","A* -line","A* -random"]

Cache cost

  • Cache the cost of each tile in a request.
    • Options : ["No","Yes"]

Shuffle neighbors

  • Shuffle the order of checking neighbors.
    • Options : ["No","Yes"]

Weight

  • Weight of heuristic estimation for A*- path mode.

Actions

Cost

Action:Set cost

  • Set cost.
    • Cost ( number ) : Cost

Filter

Action:Append filter result

  • Append filter result in UID.
    • UID ( number or string ) : Filter result

Request: Moveable area

Action:Get moveable area

  • Get moveable area.
    • Start vertex ( number or string ) : The UID of start vertex
    • Moving points ( number ) : Moving points.
    • Moving cost ( number or string ) : A number or a function name to get moving cost for each tile.
    • Filter ( string ) : Filter function name to get avaiable uid, "" is passing default.
    • Group ( string ) : Put result in this group
    • Result ( Combo ) : Result group.
      • Options : ["Vertices","Vertices and edges"]

Request: Moving path

Action:Get moving path

  • Get moving path.
    • Start vertex ( number or string ) : The UID of start vertex
    • End vertex ( number or string ) : The UID of end vertex
    • Moving points ( number ) : Moving points.
    • Moving cost ( number or string ) : A number or a function name to get moving cost for each tile.
    • Group ( string ) : Put result in this group
    • Exact ( Combo ) : Exact or nearest.
      • Options : ["","nearest"]
    • Result ( Combo ) : Result group.
      • Options : ["Vertices","Vertices and edges"]

Setup

Action:Setup

  • Set graph object and instance group object.
    • Graph ( object ) : Graph object
    • Group ( object ) : Instance group object

Action:Set path mode

  • Set path mode.
    • Path mode ( Combo ) : Geometry of moving path.
      • Options : ["Random","A*","Line","A*-line","A*-random"]

Action:Set random generator

  • Set random generator object.
    • Random generator ( object ) : Random generator object

Expressions

Cost

Expression:BLOCKING

  • Blocking property used in cost function, used in action:"Set cost". The value is (-1)

Moving point

Expression:INFINITY

  • Infinity property used in moving point, used in Moving point. The value is (-1)

Request

Expression:StartVertexUID

  • Get UID of start vertex.

Expression:EndVertexUID

  • Get UID of end vertex.

Expression:VertexUID

  • Get UID of vertex of request.

Expression:EdgeUID

  • Get UID of edge of request between PreVertex and Vertex

Expression:PreVertexUID

  • Get UID of previos vertex of request.

Request: Previous

Expression:PrePathCost

  • Get path cost of previos vertex.

Result

Expression:UID2PathCost

  • Get path cost of vertex by UID. Retrun (-1) if unknown.
    • UID ( number or string ) : UID of vertex

Expression:NearestVertexUID

  • Get UID of nearest vertex.

Conditions

Cost

Condition:On cost

  • Cost function to get cost of each tile.
    • Name ( string ) : Cost function name.

Filter

Condition:On filter

  • Filter function to re-assign target instances.
    • Name ( string ) : Filter function name.