RAIN.Motion.Instantaneous.SB_Separate Class Reference

SB_Separate is a steering behavior that attempts to keep some distance from nearby targets. More...

Inheritance diagram for RAIN.Motion.Instantaneous.SB_Separate:
RAIN.Motion.Instantaneous.SteeringBehavior

List of all members.

Public Member Functions

 SB_Separate (float threshold_, float decaycoef_)
 Parameterized constructor.
override Steering Steer (Kinematic agent, Kinematic target)
 See SteeringBehavior.
override Steering Steer (Kinematic agent, GameObject[] entities)
 See SteeringBehavior.

Public Attributes

float threshold = 0f
 The threshold for activating separation behavior.
float decaycoef = 0f
 The decay rate for forces as they move between 0 and threshold distance.

Detailed Description

SB_Separate is a steering behavior that attempts to keep some distance from nearby targets.


Constructor & Destructor Documentation

RAIN.Motion.Instantaneous.SB_Separate.SB_Separate ( float  threshold_,
float  decaycoef_ 
)

Parameterized constructor.

Parameters:
thresholdOnly targets within a threshold radius are considered
decaycoefDetermines how rapidly separation forces decay with distance.

Member Function Documentation

override Steering RAIN.Motion.Instantaneous.SB_Separate.Steer ( Kinematic  agent,
Kinematic  target 
) [virtual]

See SteeringBehavior.

Parameters:
agent
target
Returns:

Reimplemented from RAIN.Motion.Instantaneous.SteeringBehavior.

override Steering RAIN.Motion.Instantaneous.SB_Separate.Steer ( Kinematic  agent,
GameObject[]  entities 
) [virtual]

See SteeringBehavior.

Parameters:
agent
entities
Returns:

Reimplemented from RAIN.Motion.Instantaneous.SteeringBehavior.


Member Data Documentation

The decay rate for forces as they move between 0 and threshold distance.

The threshold for activating separation behavior.