RAIN.Motion.Acceleration.SB_Avoid Class Reference

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...

Inheritance diagram for RAIN.Motion.Acceleration.SB_Avoid:
RAIN.Motion.Acceleration.SteeringBehavior

List of all members.

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.

Detailed Description

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.


Constructor & Destructor Documentation

RAIN.Motion.Acceleration.SB_Avoid.SB_Avoid ( float  threshold,
float  decaycoef,
float  timehorizon 
)

Parameterized constructor.

Parameters:
thresholdThe minimum distance between the center of the AI and any possible collision.
decaycoefA coefficient determining how rapidly avoidance forces decay with distance/time to collision
timehorizonWe only avoid collisions within the timehorizon (in seconds)

Member Function Documentation

override Steering RAIN.Motion.Acceleration.SB_Avoid.Steer ( Kinematic  agent,
Kinematic  target 
) [virtual]

See SteeringBehavior.

Parameters:
agent
target
Returns:

Reimplemented from RAIN.Motion.Acceleration.SteeringBehavior.

override Steering RAIN.Motion.Acceleration.SB_Avoid.Steer ( Agent  agent,
List< Agent entities 
) [virtual]

SteeringBehavior.

Parameters:
agent
entities
Returns:

Reimplemented from RAIN.Motion.Acceleration.SteeringBehavior.