The Priority node

Inputs come in pairs (values, priorities). To workout the output, the node works down the pairs and adds the contents of the value multiplied by the priority and the proportion of output still left to set. For example:

Values0 is {"None": 10}

Priority0 is {"None": .2}

Values1 is {"None": -5}

Priority1 is {"None": .5}

defaultValue is 1

Result is: 10*0.2*1 + -5*.5*(1-0.2) + 1*(1-0.2-(1-0.2)*0.5) = 0.4

Useful for when you want some values to overwrite others without making them massive because you don’t want a large change in the value. For example, if avoiding collisions as well as navigating to a target then collision avoidance should always take precedence over navigation.