RAIN.Motion.Acceleration.SB_Pursue Class Reference

SB_Pursue is a steering behavior that attempts to steer toward the future position of a target based on its current velocity. More...

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

List of all members.

Public Member Functions

 SB_Pursue (float timeToTarget, float slowRadius, float closeEnoughRadius)
 Parameterized constructor.
override Steering Steer (Kinematic agent, Kinematic target)
 See SteeringBehavior.

Detailed Description

SB_Pursue is a steering behavior that attempts to steer toward the future position of a target based on its current velocity.


Constructor & Destructor Documentation

RAIN.Motion.Acceleration.SB_Pursue.SB_Pursue ( float  timeToTarget,
float  slowRadius,
float  closeEnoughRadius 
)

Parameterized constructor.

Parameters:
timeToTargetTime in the future we want to arrive at the target
slowRadiusDistance from the target to begin slowing
closeEnoughRadiusHow close do we have to get?

Member Function Documentation

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

See SteeringBehavior.

Parameters:
agent
target
Returns:

Reimplemented from RAIN.Motion.Acceleration.SteeringBehavior.