Problem with path going to ground, and a question regarding multiple units

Hey, first let me thank the developer for his amazing work. I got the basic stuff to work but I ran into a couple of issues:

  1. My path seems to go down into the ground, and re-emerge right before the last node, making my unit act weirdly. I resolved this by overriding path.vectorPath.y and setting it to transform.position.y, however I’d like to resolve the problem not the symptom. Image Link to show the problem. Any ideas?

  2. My second question is, how to handle multiple units when they reach the same target? If a unit arrive at the final node and there is already another unit in there, it’ll just keep trying to reach that blocked point forever. Not looking for specific code, just how to approach this?

Cheers.

Hi

  1. Check the settings for the StartEndModifier, it should have the different settings you want, try changing them and see what happens.

  2. There are several approaches. One could be a raycast for units ahead to not try to move in to other units. Another one could be using local avoidance, that can tend to cause flowing behaviour back and forth instead of staying put at the target though.
    If you know all units heading for a specific point you could also give them slightly different target points, e.g make them walk up to a circle around the target point.