The U4DNavigation class determines the path for the 3D model to navigate.
More...
The U4DNavigation class determines the path for the 3D model to navigate.
◆ computePath()
computes the path using the provided starting and target positions
- Parameters
-
uAction | Dynamic action representing the pursuer |
uTargetPosition | target position |
◆ getSteering()
Computes the velocity for steering.
- Parameters
-
uAction | Dynamic action represented as the pursuer |
- Returns
- velocity vector to apply to 3D model
◆ loadNavMesh()
bool U4DEngine::U4DNavigation::loadNavMesh |
( |
const char * |
uNavMeshName, |
|
|
const char * |
uBlenderFile |
|
) |
| |
loads the navigation mesh imported from blender
- Parameters
-
uNavMeshName | name of navigation mesh as specified in blender 3D |
uBlenderFile | name of file |
- Returns
- true if the nav mesh was properly loaded
◆ setNavigationSpeed()
void U4DEngine::U4DNavigation::setNavigationSpeed |
( |
float |
uNavigationSpeed | ) |
|
sets the navigation speed for the pursuer
- Parameters
-
uNavigationSpeed | navigation speed |
◆ setPathOffset()
void U4DEngine::U4DNavigation::setPathOffset |
( |
float |
uPathOffset | ) |
|
set the distance along the path to generate the target position
- Parameters
-
◆ setPathRadius()
void U4DEngine::U4DNavigation::setPathRadius |
( |
float |
uPathRadius | ) |
|
set the path radius
- Parameters
-
uPathRadius | radius of path |
◆ setPredictTime()
void U4DEngine::U4DNavigation::setPredictTime |
( |
float |
uPredictTime | ) |
|
sets the time in the future to predict the position
- Parameters
-
◆ setSlowRadius()
void U4DEngine::U4DNavigation::setSlowRadius |
( |
float |
uSlowRadius | ) |
|
sets the radius distance to the target where the pursuer should slow down
- Parameters
-
uSlowRadius | radius of circle to slow down |
◆ setTargetRadius()
void U4DEngine::U4DNavigation::setTargetRadius |
( |
float |
uTargetRadius | ) |
|
sets the radius distance to the target where the velocity of the pursuer should come to a stop
- Parameters
-
uTargetRadius | radius of circle to stop |