SB_Align is a steering behavior that aligns the AI orientation with that of a target. More...
Public Member Functions | |
SB_Align (float timeToTarget, float closeEnoughRadius) | |
Parameterized constructor. | |
override Steering | Steer (Kinematic agent, Kinematic target) |
See SteeringBehavior. |
SB_Align is a steering behavior that aligns the AI orientation with that of a target.
RAIN.Motion.Acceleration.SB_Align.SB_Align | ( | float | timeToTarget, |
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.Acceleration.SB_Align.Steer | ( | Kinematic | agent, |
Kinematic | target | ||
) | [virtual] |
See SteeringBehavior.
agent | |
target |
Reimplemented from RAIN.Motion.Acceleration.SteeringBehavior.