The U4DFlock class implements AI steering separation behavior.
More...
The U4DFlock class implements AI steering separation behavior.
◆ getSteering()
Computes the velocity for steering.
- Parameters
-
uPursuer | Dynamic action represented as the pursuer |
uNeighborsContainer | neighbors container |
- Returns
- velocity vector to apply to 3D model
◆ setMaxSpeed()
void U4DEngine::U4DFlock::setMaxSpeed |
( |
float |
uMaxSpeed | ) |
|
sets the maximum speed for steering
- Parameters
-
uMaxSpeed | maximum steering speed |
◆ setNeighborsDistance()
void U4DEngine::U4DFlock::setNeighborsDistance |
( |
float |
uNeighborSeparationDistance, |
|
|
float |
uNeighborAlignDistance, |
|
|
float |
uNeighborCohesionDistance |
|
) |
| |
Sets the corresponding separation, alignment and cohesion neighbor distance.
- Parameters
-
uNeighborSeparationDistance | Distance for neighbor separation |
uNeighborAlignDistance | Distance for neighbor alignment |
uNeighborCohesionDistance | Distance for neighbor cohesion |