SB_Cohesion is a steering behavior that moves and agent toward the "center of mass" of a group. More...
Public Member Functions | |
SB_Cohesion (float threshold, float decaycoef) | |
Parameterized constructor. | |
override Steering | Steer (Kinematic agent, Kinematic target) |
See SteeringBehavior. | |
override Steering | Steer (Kinematic agent, GameObject[] entities) |
See SteeringBehavior. | |
override Steering | Steer (Agent agent, List< Agent > entities) |
See SteeringBehavior. |
SB_Cohesion is a steering behavior that moves and agent toward the "center of mass" of a group.
RAIN.Motion.Instantaneous.SB_Cohesion.SB_Cohesion | ( | float | threshold, |
float | decaycoef | ||
) |
Parameterized constructor.
threshold | Only consider group members within threshold distance |
decaycoef | The rate at which steering forces decay with distance |
override Steering RAIN.Motion.Instantaneous.SB_Cohesion.Steer | ( | Kinematic | agent, |
Kinematic | target | ||
) | [virtual] |
See SteeringBehavior.
agent | |
target |
Reimplemented from RAIN.Motion.Instantaneous.SteeringBehavior.
override Steering RAIN.Motion.Instantaneous.SB_Cohesion.Steer | ( | Agent | agent, |
List< Agent > | entities | ||
) | [virtual] |
See SteeringBehavior.
agent | |
entities |
Reimplemented from RAIN.Motion.Instantaneous.SteeringBehavior.
override Steering RAIN.Motion.Instantaneous.SB_Cohesion.Steer | ( | Kinematic | agent, |
GameObject[] | entities | ||
) | [virtual] |
See SteeringBehavior.
agent | |
entities |
Reimplemented from RAIN.Motion.Instantaneous.SteeringBehavior.