• Hi Guest!

    Please be aware that we have released another critical security patch for VaM. We strongly recommend updating to version 1.22.0.12 using the VaM_Updater found in your installation folder.

    Details about the security patch can be found here.
Atom Pathfinding System

Plugins + Scripts Atom Pathfinding System

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 ......

1738933493934.png
1738933525799.png


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​

1738933200768.png

  • 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​

1738933267353.png

  • 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​

1738933314267.png
1738933320905.png

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).
  • 1738932253788.png
    1738932253788.png
    44.6 KB · Views: 0
  • 1738932270200.png
    1738932270200.png
    42.8 KB · Views: 0
Author
PluginIdea
Downloads
898
Views
2,488
Favorites
8
Packages
1
Total Size
0.99 MB
Version
1.0
First release
Last update
Rating
0.00 star(s) 0 ratings

More resources from PluginIdea

Back
Top Bottom