SB_Avoid is a steering behavior that produces an avoidance Steering output based on calculating shortest time to collision among a group of targets, then attempting to avoid just that target. More...
Public Member Functions | |
SB_Avoid (float threshold, float decaycoef, float timehorizon) | |
Parameterized constructor. | |
override Steering | Steer (Kinematic agent, Kinematic target) |
See SteeringBehavior. | |
override Steering | Steer (Agent agent, List< Agent > entities) |
SteeringBehavior. |
SB_Avoid is a steering behavior that produces an avoidance Steering output based on calculating shortest time to collision among a group of targets, then attempting to avoid just that target.
RAIN.Motion.Acceleration.SB_Avoid.SB_Avoid | ( | float | threshold, |
float | decaycoef, | ||
float | timehorizon | ||
) |
Parameterized constructor.
threshold | The minimum distance between the center of the AI and any possible collision. |
decaycoef | A coefficient determining how rapidly avoidance forces decay with distance/time to collision |
timehorizon | We only avoid collisions within the timehorizon (in seconds) |
override Steering RAIN.Motion.Acceleration.SB_Avoid.Steer | ( | Kinematic | agent, |
Kinematic | target | ||
) | [virtual] |
See SteeringBehavior.
agent | |
target |
Reimplemented from RAIN.Motion.Acceleration.SteeringBehavior.
override Steering RAIN.Motion.Acceleration.SB_Avoid.Steer | ( | Agent | agent, |
List< Agent > | entities | ||
) | [virtual] |