The U4DSteering class implements AI steering behaviors.
More...
Inherited by U4DEngine::U4DArrive, U4DEngine::U4DFlee, and U4DEngine::U4DSeek.
|
float | maxSpeed |
| maximum speed for steering
|
|
The U4DSteering class implements AI steering behaviors.
◆ getCurrentPathIndex()
virtual int U4DEngine::U4DSteering::getCurrentPathIndex |
( |
| ) |
|
|
inlinevirtual |
gets the current path the pursuer is following
- Returns
- index in the path(segment) vector
Reimplemented in U4DEngine::U4DFollowPath.
◆ getSteering() [1/4]
Computes the velocity for steering.
- Parameters
-
uAction | Dynamic action represented as the pursuer |
- Returns
- velocity vector to apply to 3D model
Reimplemented in U4DEngine::U4DAvoidance.
◆ getSteering() [2/4]
Computes the velociry for steering along the provided path.
- Parameters
-
uAction | Dynamic action represented as the pursuer |
uPathContainer | segment vector representing the path the pursuer must follow |
- Returns
- velocity vector to apply to 3D model
Reimplemented in U4DEngine::U4DFollowPath.
◆ getSteering() [3/4]
◆ getSteering() [4/4]
Computes the velocity for steering.
- Parameters
-
uPursuer | 3D model represented as the pursuer |
uEvader | 3D model represented as the evader. Also known as the target |
- Returns
- velocity vector to apply to 3D model
Reimplemented in U4DEngine::U4DPursuit.
◆ setMaxSpeed()
void U4DEngine::U4DSteering::setMaxSpeed |
( |
float |
uMaxSpeed | ) |
|
sets the maximum speed for steering
- Parameters
-
uMaxSpeed | maximum steering speed |
◆ setPathOffset()
virtual void U4DEngine::U4DSteering::setPathOffset |
( |
float |
uPathOffset | ) |
|
|
inlinevirtual |
◆ setPathRadius()
virtual void U4DEngine::U4DSteering::setPathRadius |
( |
float |
uPathRadius | ) |
|
|
inlinevirtual |
◆ setPredictTime()
virtual void U4DEngine::U4DSteering::setPredictTime |
( |
float |
uPredictTime | ) |
|
|
inlinevirtual |
◆ setWanderOffset()
virtual void U4DEngine::U4DSteering::setWanderOffset |
( |
float |
uWanderOffset | ) |
|
|
inlinevirtual |
sets the wander offset used for the Wander steering behavior. This represents the distance offset between the pursuer and the wander target
- Parameters
-
uWanderOffset | distance offset |
Reimplemented in U4DEngine::U4DWander.
◆ setWanderRadius()
virtual void U4DEngine::U4DSteering::setWanderRadius |
( |
float |
uWanderRadius | ) |
|
|
inlinevirtual |
sets the wander circle radius for the Wander steering behavior
- Parameters
-
uWanderRadius | radius of wander circle |
Reimplemented in U4DEngine::U4DWander.
◆ setWanderRate()
virtual void U4DEngine::U4DSteering::setWanderRate |
( |
float |
uWanderRate | ) |
|
|
inlinevirtual |
sets the rate for the random number for wander target position
- Parameters
-
Reimplemented in U4DEngine::U4DWander.