You want any atom in the scene to Pathfinding? Realize advanced AI pathfinding function? This is what you need!
How to use it simply?
1. Add NaveMeshBuilder.cslist to the terrain atom you need, and it will automatically identify sub-atoms. Click "Bake mesh".
2. Adding DynamicObstacle.cslist to any atom can add real-time obstacles.
3. Add AtomController.cslist to the atom you need to pathfind. Adjust the parameters. Then you can set the destination of the atom through debugging (alt+LMB) or through a trigger.
Please refer to the video demonstration for details.
Main features:
1. advanced AI pathfinding.
2. Suitable for any atom.
3. Complete trigger support.
4. Automatically follow the atomic function.
5. Lots of other features ......
About Bake Terrain
About Dynamic Obstacle
Here are mainly some controls on the movement of characters.
How to use it simply?
1. Add NaveMeshBuilder.cslist to the terrain atom you need, and it will automatically identify sub-atoms. Click "Bake mesh".
2. Adding DynamicObstacle.cslist to any atom can add real-time obstacles.
3. Add AtomController.cslist to the atom you need to pathfind. Adjust the parameters. Then you can set the destination of the atom through debugging (alt+LMB) or through a trigger.
Please refer to the video demonstration for details.
Main features:
1. advanced AI pathfinding.
2. Suitable for any atom.
3. Complete trigger support.
4. Automatically follow the atomic function.
5. Lots of other features ......
About Bake Terrain
About Dynamic Obstacle
About Main Pathfinding Component
- Is Sync: Whether to turn on pathfinding.
- Is Debug: whether to turn on the debugging option, after turning on, you can press "Alt+Middle mouse button(For ordinary atoms, the shortcut key is Ctrl+Middle mouse button.)" to instantly set the target position of the character as the position clicked by the mouse.
- Is Draw Navgate Path: whether to draw the path line of the person navigating to the destination.
- Point: the coordinates of the target point.
- Move To Target Atom: move to the specified atomic position.
- Stop Agent: stop navigation.
- Reset To Begin Point: move the character to the initial position.
Automatically follow the target atom
- Is Enable Track: turns on the following of the target atom.
- Use agent remaining distance: whether the stopping distance is based on the remaining distance on the navigation path. Cancel means to directly use the linear distance between the character and the target atom on the XZ plane.
- Track Stop Distance: the stop distance when following the motion of atoms.
Begin And Stop
- Move Begin Trigger: Triggered before the character is ready to walk.
- Move Complete Trigger: Triggered when the character arrives at the destination.
- Rotate Completed Trigger : Triggered when the destination is reached and the atomic direction is aligned.
- Current Move Speed Trigger : Provides the moving speed of the current character.Triggered when a character walks
- Align Target Atom When Arrived: Whether the character is aligned with the Z axis of the target atom after arriving at the destination. This item requires you to set target atom.
Pathfinding Parameters
Here are mainly some controls on the movement of characters.
- Custom navigation speed : Whether to customize the movement speed during navigation. When this option is turned on, the moving speed needs to be adjusted to the appropriate position by yourself to ensure that it will not slip.
- Person Base Offset Y: the extra offset value of the character in the y-axis direction. If you find that the character is suspended when walking. This offset value can be adjusted.
- Agent Height: the assumed height of the character.
- Agent Radius: the assumed character radius.
- Rotate Speed: the maximum rotation speed of a character when walking(Only valid when "Custom navigation speed" is not checked.).
- Max Speed: the maximum speed when a character walks (this item is invalid when "Custom navigation mode" is checked).
- Acceleration: the acceleration of a person walking(Only valid when "Custom navigation speed" is checked.).
- Deceleration: the deceleration of a person walking(Only valid when "Custom navigation speed" is checked.).
- AlignmentRotationSmoothing : Align smoothing(Only valid when "Custom navigation speed" is checked.).
- StartMoveAngleThrehold: Character will start moving when angle is lower than this(Only valid when "Custom navigation speed" is checked.).
- Approach distance: the smoothness of the speed reduction when approaching the destination(Only valid when "Custom navigation speed" is not checked.).
- StopDistance: how far is the character from the target position to stop (straight line distance in xz plane).