I've been working on a WebGL demo that demonstrates velocity based collision avoidance, along with bicycle, rotational and non-directional steering. It builds upon the work done on ORCA. It is not only a wrapper, but also support for 3D obstacles. Agents can also be capsules (the car scene demonstrates this). 

The implementation is designed to be simple to use.

Features:
1) Addition of 3D obstacle avoidance.
2) Solver for bicycle steering in two dimensions (lift and steer), so you can find the position change from a certain lift/steer or get the lift/steer from a position change. This is essential for AI control. It is an enjoyable movement model, as it requires the agent to move to turn rather than turn on the spot. 
4) Robust collision detection. So it can be known when a wall is hit.
5) A simple interface where you provide a velocity or delta position input.
6) Support for formations
7) Support for flocking behaviours that use the robustness of ORCA. It does not use the flocking avoidance, rather ORCA based avoidance.
8) Bicycle (simplified flying/car model), rotational and non-rotational steering.
9) Fully documented code and unit tests.
10) Way point and moving target navigation. 
11) Integrated into Navmesh


Ideally, I would like to put it on the app store and continue enhancements - including source code.

Comments

Log in with itch.io to leave a comment.

Where is the source code?

Wishing this for UE4... ;-)
(there are some similar assets, but always interesting to see and try new solutions)

I actually know C++ fairly well. I have dabbled a little bit in ue4. But still some work to do in unity to sort out a few technical issues.

Cool! Exciting :) Thank You for answer.