SB_LookWhereYoureGoing is a steering behavior that rotates the AI to align with its forward vector. More...
Public Member Functions | |
SB_LookWhereYoureGoing (float min_velocity, float alignTimeToTarget, float alignSlowRadius, float alignCloseEnoughRadius) | |
Parameterized constructor. | |
override Steering | Steer (Kinematic agent) |
See SteeringBehavior. |
SB_LookWhereYoureGoing is a steering behavior that rotates the AI to align with its forward vector.
RAIN.Motion.Instantaneous.SB_LookWhereYoureGoing.SB_LookWhereYoureGoing | ( | float | min_velocity, |
float | alignTimeToTarget, | ||
float | alignSlowRadius, | ||
float | alignCloseEnoughRadius | ||
) |
Parameterized constructor.
min_velocity | the minimum linear velocity the AI must be moving before the steering forces are generated |
alignTimeToTarget | time in the future we want the AI to be aligned. This helps smooth turning |
alignCloseEnoughRadius | how close do we have to get? in degrees |
override Steering RAIN.Motion.Instantaneous.SB_LookWhereYoureGoing.Steer | ( | Kinematic | agent | ) | [virtual] |
See SteeringBehavior.
agent |
Reimplemented from RAIN.Motion.Instantaneous.SteeringBehavior.