RAIN.Motion.Acceleration.SB_Wander Class Reference

SB_Wander is a steering behavior that attempts to produce a random wandering motion Wandering is defined by steering toward a target rotating randomly around a circle at some distance in front of the AI. More...

Inheritance diagram for RAIN.Motion.Acceleration.SB_Wander:
RAIN.Motion.Acceleration.SteeringBehavior

List of all members.

Public Member Functions

 SB_Wander (float floatingDistance, float floatingRadius, float maxSlideDegrees, SteeringBehavior move, SteeringBehavior look)
 Parameterized constructor.
override Steering Steer (Kinematic agent)
 See SteeringBehavior.

Detailed Description

SB_Wander is a steering behavior that attempts to produce a random wandering motion Wandering is defined by steering toward a target rotating randomly around a circle at some distance in front of the AI.


Constructor & Destructor Documentation

RAIN.Motion.Acceleration.SB_Wander.SB_Wander ( float  floatingDistance,
float  floatingRadius,
float  maxSlideDegrees,
SteeringBehavior  move,
SteeringBehavior  look 
)

Parameterized constructor.

Parameters:
floatingDistanceDistance in front of the AI to place the wander circle
floatingRadiusSize of the wander circle
maxSlideDegreesMax degrees the target can rotate in one timestep
moveThe steering behavior to use for linear movement
lookThe steering behavior to use for angular rotation

Member Function Documentation

override Steering RAIN.Motion.Acceleration.SB_Wander.Steer ( Kinematic  agent) [virtual]

See SteeringBehavior.

Parameters:
agent
Returns:

Reimplemented from RAIN.Motion.Acceleration.SteeringBehavior.