RAIN.Motion.Instantaneous.SB_LookWhereYoureGoing Class Reference

SB_LookWhereYoureGoing is a steering behavior that rotates the AI to align with its forward vector. More...

Inheritance diagram for RAIN.Motion.Instantaneous.SB_LookWhereYoureGoing:
RAIN.Motion.Instantaneous.SteeringBehavior

List of all members.

Public Member Functions

 SB_LookWhereYoureGoing (float min_velocity, float alignTimeToTarget, float alignSlowRadius, float alignCloseEnoughRadius)
 Parameterized constructor.
override Steering Steer (Kinematic agent)
 See SteeringBehavior.

Detailed Description

SB_LookWhereYoureGoing is a steering behavior that rotates the AI to align with its forward vector.


Constructor & Destructor Documentation

RAIN.Motion.Instantaneous.SB_LookWhereYoureGoing.SB_LookWhereYoureGoing ( float  min_velocity,
float  alignTimeToTarget,
float  alignSlowRadius,
float  alignCloseEnoughRadius 
)

Parameterized constructor.

Parameters:
min_velocitythe minimum linear velocity the AI must be moving before the steering forces are generated
alignTimeToTargettime in the future we want the AI to be aligned. This helps smooth turning
alignCloseEnoughRadiushow close do we have to get? in degrees

Member Function Documentation

override Steering RAIN.Motion.Instantaneous.SB_LookWhereYoureGoing.Steer ( Kinematic  agent) [virtual]

See SteeringBehavior.

Parameters:
agent
Returns:

Reimplemented from RAIN.Motion.Instantaneous.SteeringBehavior.