Gita Assets
Unity / Plugins

Unity Local Avoidance 2.1.1 | Local Avoidance

Overview

Local Avoidance is a fast, lightweight solution for local avoidance. It is developed with DOTS in mind, and as a result it takes advantage of the Unity latest technology stack like SIMD mathematics, Jobs and the Burst compiler. Local avoidance allows an agent to avoid dynamic obstacles, with accuracy and speed, and without requiring pre-processing. However, keep in mind it does not replace global navigation (such as A* pathing solutions), which is designed to find the most optimal path around static obstacles; local avoidance is intended to be used in complement with such a system in a full scale game. At its core it uses a novel solution, which is heavily inspired by the Starcraft 2 game. The whole logic is separated into a single structure and no components are used, so it can be easily integrated into any existing global pathing system. For this reason this package is highly recommended for people who have coding experience, as it is expected from the user to integrate the solution into their own ecosystem; there are component-ready demos, but they are solely there as examples. The whole avoidance solution is contained in a single structure called SonarAvoidance.

Key features

- Fast, lightweight local avoidance solution developed with DOTS in mind, taking advantage of the Unity technology stack such as SIMD mathematics, Jobs and the Burst compiler.
- Lets agents avoid dynamic obstacles with accuracy and speed, without requiring pre-processing.
- The whole logic is separated into a single structure (SonarAvoidance) and no components are used, allowing easy integration into any existing global pathing system, regardless of whether it is object-oriented or data-oriented.
- The avoidance solution is used in 4 steps: construct, add obstacles, find avoidance direction and cleanup.
- Key behaviours: manages navigation out of concave obstacles; circles the target; avoids head-to-head movement; accurately respects radius; predicts collisions and avoids based on that; avoids only when necessary.
- Complements global navigation (such as A* pathing solutions) designed to find the most optimal path around static obstacles.

Included content

Local Avoidance API; samples (including component-ready demos and the Zerg demo); documentation.

Compatibility

The version sold in this store is 2.1.1. Unity 2019.4.35f1: Built-in, URP and HDRP are all supported. Current official specifications are for reference only; actual support is based on version 2.1.1 sold in this store.

Requirements

Tested with Unity 2019.4. Requires the packages com.unity.mathematics, com.unity.collections and com.unity.burst.

Render pipeline compatibility

UnityBuilt-inURPHDRP
2019.4.35f1

Technical specifications

Original creator
Lukas Chodosevicius
Current official version
2.1.1
Supported engines
2019.4.35, 2019.4.35f1
Render pipelines
2019.4.35f1 · Built-in / HDRP / URP
Official file size
17.33 MB
Official update date
2023-07-20
Asset file count
79
Package format
unitypackage
First official release
2022-03-01

Tags

Full description

This package contains fast lightweight solution for local avoidance. It is developed with DOTS in mind, as result it takes advantage of Unity latest technology stack like SIMD mathematics, Jobs and Burst compiler. Local avoidance allows agent to avoid dynamic obstacles, with accuracy, speed and not requiring pre processing. However keep in mind it does not replace global navigation (etc. A* Pathing solutions) which is designed to find most optimal path around static obstacles. Local avoidance it is intended to be used in complimentary with such a system in full scale game. At its core it uses novel solution, which is heavily inspired by Starcraft 2 game. Is there components that I can use? No, the whole logic is separated into single structure and no components are used. Thus allowing easy integration in any existing Global Pathing system, regardless if it's OOD or DOD. For this reason this package is highly recommended for people who have coding experience as it is expected from user to integrate the solution into their own ecosystem. There are component ready demos, but they are solely there as examples. For those, who want mono components or ecs based implementation you can check version 3.0 as Agents Navigation. What is the API? The whole avoidance solution is contained in a single structure called SonarAvoidance. The usage of structure is composed of mainly 4 steps: construct, add obstacles, find avoidance direction and cleanup. var sonar = new SonarAvoidance(...) sonar.InsertObstacle(...) sonar.FindClosestDirection(out float3 direction) sonar.Dispose()

Demo Zerg Key Behaviours Manages navigation out of concave obstacles Circles target Avoids head to head moving Accurately respects radius Predicts collisions and avoids based on that Avoids only when necessary

Dependencies Tested with Unity 2019.4 Package com.unity.mathematics Package com.unity.collections Package com.unity.burst

Note: This does not include Global Avoidance which is typical archieved using A* algorithm on data structures like NavMesh or Grid and targeted for static obstacles. Local avoidance typicaly used as complimentary system for it to target dynamic obstacle avoidance.

- Local Avoidance API - Samples - Documentation

Ratings and reviews

You can rate and review this item after purchase.

No buyer reviews yet.

Unity Local Avoidance 2.1.1 | Local Avoidance · Unity Plugins · Preview 3Unity Local Avoidance 2.1.1 | Local Avoidance · Unity Plugins · Preview 4Unity Local Avoidance 2.1.1 | Local Avoidance · Unity Plugins · Preview 5Unity Local Avoidance 2.1.1 | Local Avoidance · Unity Plugins · Preview 6Unity Local Avoidance 2.1.1 | Local Avoidance · Unity Plugins · Preview 7
Contact support