Context Steering

The context steering module is a smart steering behaviour. It generates multiple rays around the agent and uses other directional and avoidance modules to choose the best direction.



Attributes

AttributesTypeOverridableDescription
numSamplesintnoNumber of samples.
maxDistancefloatnoMax distance.
maxTurnAngledoublenoThe max turn angle.
dangerThresholddoubleyesIgnore direction that has a danger value higher than this threshold.
angleThresholddoubleyesIgnore directions that have an angle higher than this value. It sets the maximum danger value on the samples outside this angle.
angleThresholdMetadatastringyesMetadata used to control the angleThreshold.
alignAtInitboolyesIgnore the max turn angle when the agent is created.
useVelocityThresholdbool yesIf on, the velocity threshold will be used.
velocityThresholddouble yesIf the agent velocity length is smaller than this value, the agent direction is not modified.
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
maxLinearAccelerationdoubleyesMaximum linear acceleration per frame
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.
debugboolnoActivate the draw debug visualization


 

Copyright © 2017, Toolchefs LTD.