RAIN.Motion.Acceleration.SteeringBehavior Class Reference

SteeringBehavior is the base class for all steering behaviors. SteeringBehaviors should override whichever Steer methods they support and leave the rest unchanged. Unhandled behaviors will return an empty (no-op) steering. More...

Inheritance diagram for RAIN.Motion.Acceleration.SteeringBehavior:
RAIN.Motion.Acceleration.SB_Align RAIN.Motion.Acceleration.SB_Arrive RAIN.Motion.Acceleration.SB_Avoid RAIN.Motion.Acceleration.SB_Cohesion RAIN.Motion.Acceleration.SB_Face RAIN.Motion.Acceleration.SB_Flee RAIN.Motion.Acceleration.SB_LookWhereYoureGoing RAIN.Motion.Acceleration.SB_Pursue RAIN.Motion.Acceleration.SB_Seek RAIN.Motion.Acceleration.SB_Separate RAIN.Motion.Acceleration.SB_StopMoving RAIN.Motion.Acceleration.SB_Wander

List of all members.

Public Member Functions

virtual Steering Steer (Kinematic agent)
 Produce a steering effect for an AI agent.
virtual Steering Steer (Kinematic agent, GameObject target)
 Produce a steering effect for an AI agent given a target.
virtual Steering Steer (Kinematic agent, Kinematic target)
 Produce a steering effect for an AI agent given a target identified as a Kinematic.
virtual Steering Steer (Kinematic agent, GameObject[] scope)
 Produce a steering effect for an AI agent given a group of targets/participants. This might be used, for example, for flocking or avoidance.
virtual Steering Steer (Agent agent, List< Agent > scope)
 Produce a steering effect for an AI agent given a list of targets/participants. This might be used, for example, for flocking or avoidance.

Detailed Description

SteeringBehavior is the base class for all steering behaviors. SteeringBehaviors should override whichever Steer methods they support and leave the rest unchanged. Unhandled behaviors will return an empty (no-op) steering.


Member Function Documentation

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

Produce a steering effect for an AI agent.

Parameters:
agentThe agent Kinematic to be steered
Returns:
A Steering response

Reimplemented in RAIN.Motion.Acceleration.SB_LookWhereYoureGoing, RAIN.Motion.Acceleration.SB_StopMoving, and RAIN.Motion.Acceleration.SB_Wander.

virtual Steering RAIN.Motion.Acceleration.SteeringBehavior.Steer ( Agent  agent,
List< Agent scope 
) [virtual]

Produce a steering effect for an AI agent given a list of targets/participants. This might be used, for example, for flocking or avoidance.

Parameters:
agentThe agent Kinematic to be steered
scopeA list of AI Agents relevant to the steering behavior
Returns:
A Steering response

Reimplemented in RAIN.Motion.Acceleration.SB_Avoid, RAIN.Motion.Acceleration.SB_Cohesion, RAIN.Motion.Acceleration.SB_Separate, and RAIN.Motion.Acceleration.SB_StopMoving.

virtual Steering RAIN.Motion.Acceleration.SteeringBehavior.Steer ( Kinematic  agent,
GameObject[]  scope 
) [virtual]

Produce a steering effect for an AI agent given a group of targets/participants. This might be used, for example, for flocking or avoidance.

Parameters:
agentThe agent Kinematic to be steered
scopeAn array of game objects relevant to the steering behavior
Returns:
A Steering response

Reimplemented in RAIN.Motion.Acceleration.SB_Cohesion, and RAIN.Motion.Acceleration.SB_Separate.

virtual Steering RAIN.Motion.Acceleration.SteeringBehavior.Steer ( Kinematic  agent,
Kinematic  target 
) [virtual]
virtual Steering RAIN.Motion.Acceleration.SteeringBehavior.Steer ( Kinematic  agent,
GameObject  target 
) [virtual]

Produce a steering effect for an AI agent given a target.

Parameters:
agentThe agent Kinematic to be steered
targetA target for the steering behavior
Returns:
A Steering response