Versions Compared

Key

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

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.
debugboolnoActivate the draw debug visualization
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.
maxLinearAcceleration
debug
double
bool
yesMaximum linear acceleration per frame.
noActivate the draw debug visualization


...


Widget Connector
width900600
urlhttps://www.youtube.com/watch?v=alSdECqEPvUgEj-xvLKWJU
height600400
 
Widget Connector
width900600
urlhttps://www.youtube.com/watch?v=bZ_gjXYx_3g7r0wA4rHgdI
height600400