SB_Separate is a steering behavior that attempts to keep some distance from nearby targets. More...
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. | |
SB_Separate is a steering behavior that attempts to keep some distance from nearby targets.
| RAIN.Motion.Instantaneous.SB_Separate.SB_Separate | ( | float | threshold_, |
| float | decaycoef_ | ||
| ) |
Parameterized constructor.
| threshold | Only targets within a threshold radius are considered |
| decaycoef | Determines how rapidly separation forces decay with distance. |
| override Steering RAIN.Motion.Instantaneous.SB_Separate.Steer | ( | Kinematic | agent, |
| Kinematic | target | ||
| ) | [virtual] |
See SteeringBehavior.
| agent | |
| target |
Reimplemented from RAIN.Motion.Instantaneous.SteeringBehavior.
| override Steering RAIN.Motion.Instantaneous.SB_Separate.Steer | ( | Kinematic | agent, |
| GameObject[] | entities | ||
| ) | [virtual] |
See SteeringBehavior.
| agent | |
| entities |
Reimplemented from RAIN.Motion.Instantaneous.SteeringBehavior.
The decay rate for forces as they move between 0 and threshold distance.
The threshold for activating separation behavior.