SB_Face is a steering behavior that rotates the AI to face (look at) a target. More...
Public Member Functions | |
SB_Face (float timeToTarget, float slowRadius, float closeEnoughRadius) | |
Parameterized constructor. | |
override Steering | Steer (Kinematic agent, Kinematic target) |
See SteeringBehavior. |
SB_Face is a steering behavior that rotates the AI to face (look at) a target.
RAIN.Motion.Instantaneous.SB_Face.SB_Face | ( | float | timeToTarget, |
float | slowRadius, | ||
float | closeEnoughRadius | ||
) |
Parameterized constructor.
timeToTarget | The time in the future we want to achieve the result. This helps smooth rotation. |
closeEnoughRadius | How close do we need to get? in degrees. |
override Steering RAIN.Motion.Instantaneous.SB_Face.Steer | ( | Kinematic | agent, |
Kinematic | target | ||
) | [virtual] |
See SteeringBehavior.
agent | |
target |
Reimplemented from RAIN.Motion.Instantaneous.SteeringBehavior.