Skip to content

ming81/TotalAI

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Total AI

In Alpha so expect bugs/issues and breaking changes. TAI should work on any recent version of Unity.

Documentation
YouTube Channel
Discord Server

3D Demo World Repo
2D Demo World Repo

Watch the 4 minute Overview Video.

Total AI (TAI) is a complete free open source agent based AI Framework for Unity. Its goals are to provide an easy to prototype, flexible, fully customizable, and performant framework for a broad array of AI types and for a broad array of game types. Eventually TAI hopes to have a vast library of community created types that anyone can use to jumpstart their AI.

The core of TAI are Agents who can to sense the world, create memories, plans, and act in order to reduce their Drives based on the Mapping (the core unit of planning) with the most utility. This is accomplished with its Type System and Plan/Mapping System. It is also easy to extend and customize through ScriptableObject's pluggable data and logic ability. This makes writing and plugging in your own custom AI logic easy.

Install & Setup

Read the Documentation or watch the Video.

Features

  • Designed from the ground up to be take advantage of Unity's unique features.
  • Customizable - Usually will just need to implement a few methods to create a new type.
  • Quick to Prototype - easy to switch between various AI types.
  • Flexible - ScriptableObject Type system allows for lego-like building parts.
  • Multi-Agent - Agent Events allow for multi-agent coordination.
  • Intelligent division of Agent’s functions - Planner, Decider, Sensors, Memory, Movement, and Animation.
  • World Objects have states, state transitions, grow, built, damage, change appearance, and inventory recipes.
  • Inventory - Slot based inventory system that allows any Entity to be in any other Entity’s inventory.
  • Factions - Groups of Agents, can be figured into the Planning.
  • Drive (Motivation) based Planning - Agents will choose most pressing drive to lower.
  • Complex logic for Drive level changes - faction synced - attribute synced - custom equation changes.
  • Target Factors - Utility AI like selection process for choosing best target and best inventory target.
  • Selectors - Advanced selection logic for choosing values to use in a Mapping.
  • Mapping - Core unit of planning has Target Factors, Utility Modifiers, Input Conditions, and Output Changes.
  • Behavior/Decider Logic - Allows for complex logic for running and interrupting Mappings.
  • Mulitple supported AI types - GOAP, Utility AI, and FSM - Deep RL using ml-agents coming soon.
  • Attributes - Generic value types for Agents.
  • Roles - Allows for Actions and Drives to be changed dynamically.
  • Tags - Useful for controlling Mappings and can also be used to create relationships between Entities.
  • TypeCategories/TypeGroups - Attach multiple categories to Entities - Generalizes Mappings.
  • Agent View Editor - Agent properties, realtime history logging and plan tree visualization.
  • Setup Editor - Quick Basic Setup for a Project using the Setup Editor.
  • Custom Inspectors - Extensive use of custom inspectors for increased ease of use.
  • Extensive Documentation with goal of having 100% documentation coverage.

Agent Logic Flow Diagram

Contribute

Are you passionate about AI and Unity? Come apply your passion to help make Total AI great! This is the perfect time to jump in and have a major impact on the current and future development of Total AI.

See Contribute Documentation for more Information.

Financial Support

Do you want to see continued progress on Total AI's push from Alpha to Production? Consider financial support for the creator of TAI on Patreon. All Patrons of $5 or more will have the option to be featured on this Readme and The website's Contributors Page along with a logo and a link to their personal/business website.

Currently Implemented AI Types

In Planning/Development

Integrations

Due to Total AI's comprehesive Type System intregrating your Asset with Total AI should be simple. For example if your Asset is agent Sensors, you will just need to create custom Sensor Types that call your Sensors.

Let us know if you have an integration in your repo and/or would like us to create a separate repo for your TAI integration.

Type Packs

Did you create a set of Types for a certain style of game and want to contribute? Consider making a Type Pack so others can use it to quick start their game. Let us know and we'll add a repo for it.

Add-Ons

Did you create a set of Types for a certain Unity feature? For example a type system for Unity's Animation Rigging System. Consider turning it into an Add-On so others can use it. Let us know and we'll add a repo for it.

MIT Licensed

A short, permissive software license. Basically, you can do whatever you want as long as you include the original copyright and license notice in any copy of the software/source.

About

A Complete Open Source Agent AI Framework For Unity

Resources

License

Code of conduct

Stars

Watchers

Forks

Packages

No packages published

Languages

  • C# 100.0%