MoveLocationsInSameAreas(NativeSlice<NavMeshLocation>, NativeSlice<Vector3>, int)
Translates a series of NavMesh locations to other positions without losing contact with the surface, given one common area filter for all of them.
Read time 1 minuteLast updated 20 days ago
Definition
- Type: Method
- Namespace: UnityEngine.Experimental.AI
- Assembly: UnityEngine.AIModule
public void MoveLocationsInSameAreas(NativeSlice<NavMeshLocation> locations, NativeSlice<Vector3> targets, int areaMask = -1)
Parameters
Array of positions to be moved across the NavMesh surface. At the end of the method call this array contains the resulting locations.
World positions you want the agent to reach when moving to each of the locations.
Filters for the areas which can be traversed during the movement to each of the locations.
Remarks
Does the exact same thing as NavMeshQuery.MoveLocations only it applies the same area filter to all the movements.
Additional Resources: NavMeshQuery.MoveLocation, NavMeshLocation