Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

The follow agent module makes your agent travel towards another agent location. 

...

AttributesTypeOverridableDescription
weightdoubleyesThe module weight 
maxTurnAngledoublenoThe max turn angle.
followTargetDelayintnoThe number of delay frames used when a target agent is found
stateintnoThe agent state to use when the target agent is found
debug boolnoEnables module debug drawing.
velocityThresholddoublenoif the agent velocity length is smaller than this value the agent direction is not changed.
ignoreNextDirectionalModulesboolyesIf enabled, all next directional modules in the stack will be ignored.
locomotionTargetVelocitydoubleyesWhen using the locomotion system, if the target agent got closer than the locomotionTargetDistance then the locomotion velocities are not changed until the target agent velocity magnitude becomes greater than this value.
editLocomotionLinearVelocityboolyesIf on, this module will edit the targetLinearVelocity metadata used by the locomotion system.
linearVelocityMindoubleyesThe minimum value for the locomotion linear velocity
linearVelocityMaxdoubleyesThe maximum value for the locomotion linear velocity
negativeLinearVelocityMaxdoubleyesThe maximum value for the locomotion linear velocity when the target is behind the agent
locomotionFalloffRadiusdoubleyesDistance used for decreasing the linear velocity when getting closer to the target. Not used in delta mode
locomotionTargetDistancedoubleyesWhen the agent reaches this distance from the target the linear velocity is set to the minimum value provided
editLocomotionAngularVelocityboolyesIf on, this module will edit the targetAngularVelocity metadata used by the locomotion system.

...