Skip to content

Alonefcp/BT-API

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 

Repository files navigation

Behaviour trees API from scratch

In this project I create a custom behaviour tree API from scratch using Unity and C#. It supports leafs (custom tasks), sequences, selectors, inverters, blackboards...

With this API I recreate a simulation of an art gallery, where there are four types of agents:​

  • Robber: when the gallery is closed for customers he tries to steal a paint. If he see a cop he runs away from him and goes to his car, where he is secure. If he managed to steal a painting he returns to his car and if he doesn't have enough money he will try to steal another painting.

  • Cop: he patrols through the gallery. If he sees the robber he starts chasing him and when he loses him he continues patrolling.

  • Worker: he goes to the gallery door to give tickets to the customers. Then he returns to his office.

  • Customer: when they bored they go to the art gallery and wait to get a ticket, if they already have one they don't have to wait. Once they have entered the gallery they start looking for paintings to decrease his boredorm and if his boredorm is less than a threshold they return to their home. They can enter the gallery from 6:00 to 20:00, otherwhise they return home.

​​​​​ In this video you can see the simulation: https://youtu.be/a7mVMQK4JKk

About

No description, website, or topics provided.

Resources

License

Stars

0 stars

Watchers

1 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages