RAIN.Motion.Instantaneous.SB_Face Class Reference

SB_Face is a steering behavior that rotates the AI to face (look at) a target. More...

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

List of all members.

Public Member Functions

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

Detailed Description

SB_Face is a steering behavior that rotates the AI to face (look at) a target.


Constructor & Destructor Documentation

RAIN.Motion.Instantaneous.SB_Face.SB_Face ( float  timeToTarget,
float  slowRadius,
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.Instantaneous.SB_Face.Steer ( Kinematic  agent,
Kinematic  target 
) [virtual]

See SteeringBehavior.

Parameters:
agent
target
Returns:

Reimplemented from RAIN.Motion.Instantaneous.SteeringBehavior.