Skip to content

Commit

Permalink
Update tutorials/navigation/navigation_using_navigationagents.rst
Browse files Browse the repository at this point in the history
Co-authored-by: A Thousand Ships <[email protected]>
  • Loading branch information
cordellbonnieux and AThousandShips authored Aug 17, 2024
1 parent 0f8477a commit 861eb13
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tutorials/navigation/navigation_using_navigationagents.rst
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ The following NavigationAgent properties are relevant for avoidance:
- The property ``use_3d_avoidance`` switches the agent between the 2D avoidance (xz axis) and the 3D avoidance (xyz axis) on the next update.
Note that 2D avoidance and 3D avoidance run in separate avoidance simulations so agents split between them do not affect each other.
- The properties ``avoidance_layers`` and ``avoidance_mask`` are bitmasks similar to e.g. physics layers. Agents will only avoid other avoidance objects that are on an avoidance layer that matches at least one of their own avoidance mask bits.
- The ``avoidance_priority`` makes agents with a higher priority ignore agents with a lower priority. This can be used to give certain agents more importance in the avoidance simulation, e.g. important non playable characters, without constantly changing their entire avoidance layers or mask.
- The ``avoidance_priority`` makes agents with a higher priority ignore agents with a lower priority. This can be used to give certain agents more importance in the avoidance simulation, e.g. important non-playable characters, without constantly changing their entire avoidance layers or mask.


Avoidance exists in its own space and has no information from navigation meshes or physics collision.
Expand Down

0 comments on commit 861eb13

Please sign in to comment.