Is In Range

Runs the child node if the distance between the start position and the target is less than a specific distance.

Success: When the child returns Success.

Failure: When child node fails or the target is farther than the distance

Running: When the child is Running.


Attributes

Attributes
Type
Description
lockAgentboolIf on, ensures no data on the agent is written simultaneously by nodes that have this option active.
startPositionvector3Start position
targetPositionvector3End position
distancedoubleDistance/radius
fadeInDistancedoubleFade In distance used to compute the weight
dynamicboolIf the child is running check the distance at every tick, aborting the child if the the distance condition is not meet.
invertboolRun the child if the distance is farther and return failure if it is closer then the input distance
blackboardKeystring

Blackboard key that will contain the weight computed by the node.
If the distance condition is not meet it will contain a value of 0.
Otherwise is linear interpolated between 0 and 1 id the distance and distance - fadeInDistance

Copyright © 2017, Toolchefs LTD.