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