RAIN.Motion.Acceleration.SB_Align Class Reference

SB_Align is a steering behavior that aligns the AI orientation with that of a target. More...

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

List of all members.

Public Member Functions

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

Detailed Description

SB_Align is a steering behavior that aligns the AI orientation with that of a target.


Constructor & Destructor Documentation

RAIN.Motion.Acceleration.SB_Align.SB_Align ( float  timeToTarget,
float  closeEnoughRadius 
)

Parameterized constructor.

Parameters:
timeToTargetThe time in the future we want to achieve the result. This helps smooth rotation.
closeEnoughRadiusHow close do we need to get? in degrees.

Member Function Documentation

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

See SteeringBehavior.

Parameters:
agent
target
Returns:

Reimplemented from RAIN.Motion.Acceleration.SteeringBehavior.