OnePathfinding

I have been working on a pathfinding solution for unity3d and I would like some feedback on it. I have decided to make it open source incase anybody has some improvements they would like to implement.

Current Version: 1.4.0

Current Features:

  • A query system to make things more smooth
  • An advanced example which contains smelling (with wind), seeing and flocking.
  • It has been built for procedural terrains
  • Audio Sensors
  • Flying AI for birds and spaceships etc.
  • Spherical grids

Currently plans:

  • Release on asset store.
  • Real-time object avoidance. (1.5.0)
  • Add Passive state, only flee when attacked. (1.5.0)
  • Add smoothing function for path (To prevent clunky movement)

Screenshots:
2312686--159421--Screenshot-1.png 2312686--159422--Screenshot-2.png 2312686--159423--Screenshot-3.png

GitHub: GitHub - Unknown-Studios/OnePathfinding: A* Pathfinding solution for unity3d
Documentation: http://unknown-studios.com/OnePathDocs/
Webplayer: http://unknown-studios.com/OnePathfinding/
Website: http://unknown-studios.com
Website Forum: http://forum.unknown-studios.com

Any feedback is greatly appreciated.

  • Makak

2312686–161077–OnePathfinding.unitypackage (341 KB)

5 Likes

I have just updated the project with these updates:

Version 1.1.0:

  • Fixed Scared animals not fleeing combat, but engaging it.
  • Added Audio sensor support.
  • Added AudioScript.cs which can be attached to external audio sources.
  • Added support for spawning multiple gameobjects from Test.cs script.
  • Added option to change how many AIs is spawned by Test.cs
  • Added option on AIData to enable/disable respawning.
  • Added a new example of a scared AI
  • Improved AntiFly script
    Any opinions or ideas on this project would be gladly accepted.

Version 1.1.1:

  • Fixed some hirachy placings which caused some scripts not to work probably

Version 1.1.2:

  • Fixed two compiler errors when building.
  • Added Spectator mode to example scene.
  • Fixed Attacks never occuring when using advanced AI script

this is amazing dont understand why no ones commented , ill test this out later on and let you know what i think about , but from what i see it looks great , you should release it on the assetstore even if free.

My plan for the asset was to release it for free, but I wanted some feedback on it before posting it on the assetstore.

  • Makak

i see , if you could can you maybe add a test scene so i know how its all setup cause right now im totally confused

There is an rampe scene under Plugins/Scene/

It is called Example

I see yes I saw a scene folder but inside is only a script called example.cs, I think maybe when you exported the files the scene got excluded .

Will tale a look at that, have you tried reimporting the package to check og you have any missing files?

ill do that just to double check , also a good tip , add a namespace to your files , cause there is a conflict with a*pathfinding project asset .

I have a namespace, but it might be the same as A*'s, I will change it just to be sure, will be included in 1.1.3

Version 1.1.3:

  • Renamed the namespace to “OnePathfinding” instead of “Pathfinding”
  • Added Step by step tutorial to package.
  • Moved flock spawning from AISpawner to the AdvancedAI.
  • Removed unused code.
  • Added more advanced finding food state.
  • Removed regions, as they weren’t used for anything.
  • Added feature for automated noise. (A sound that plays from time to time)

great stuff so far , i made a voxel engine for unity and released on the assetstore(still pending review ), im wondering if this will work with it ?
anyway great work , can’t wait to see the polished version on the assetstore.

I suppose it would work fine. If not please tell what isn’t working and I will try to work out a solution for it. :slight_smile:

  • Makak

Version 1.2.0:

  • Added flying for AdvancedAI.cs
  • Added Flying AI prefab as an example on how to use AdvancedAI
  • Removed unused code in AdvancedAI
  • Redesigned AdvancedAI Editor to be more organized.

awesome thanks ill test the new version now and let you know how it goes.

I have just submitted it to the asset store, hoping for a better result this time :slight_smile:

Version 1.2.1

  • Added a way more descriptive tutorial on how to install and use.
  • Added Support, File Description, License and About sections to the TUTORIAL file.
  • (AdvancedAI.cs) Moved movement to FixedUpdate instead of Update.
  • (AdvancedAI.cs) Improved perfomance, to be 0.25-0.5ms faster.
  • (AdvancedAI.cs) Fixed one of the StackOverflowExceptions occuring after running the example scene for some time.

Version 1.3.0 (The polisher)

  • Fixed all remaining StackOverflowExceptions
  • Added Documentation to the website: http://unknown-studios.com/OnePathDocs/
  • Made every variable in the plugin documented. If I missed one please feel free to contact me. :slight_smile:
  • Fixed errors caused by not having the AI tag in the tagmanager. (This tag isn’t needed anymore)
  • Relocated the Example scene to Plugins/OnePathfinding/Examples/
  • (AdvancedAI.cs) Fixed scared animals not fleeing.
  • (AdvancedAI.cs) Fixed AI not being percistent enough.
  • (AdvancedAI.cs) Agents in a flock will move towards the master if he isn’t visible.
  • (AdvancedAI.cs) Fixed Flying AI agents not looking the direction that they are flying.
  • (GridManager.cs) Fixed bug where A* would continue to search all of the terrain if there wasn’t a path between start and end positions.
  • (GridManager.cs) Center is now called Offset, as it was more of an offset than a center for the grid.
  • (AntiFly.cs) Fixed Agents able to fall off the terrain.
  • (AISpawner.cs) Fixed bug which caused some AIs to have the wrong name after being created.
1 Like