Giter VIP home page Giter VIP logo

Comments (2)

Calamari avatar Calamari commented on August 18, 2024

Hi @EnricoPietrocola.

Cool, I am curious to see what you will come up with :-)
I am reworking the debugging concept a bit over at #44, maybe that might be useful to you, if you want to viisualize the results of the last step through your tree.

To answer your questions:

  1. Exactly. Decorators can only decorate one node, so the parameter is saying that. For all BranchNodes the parameter is nodes since they can have multiple.
  2. Names are not needed, but can help while debugging/introspecting a tree.
  3. The blackboard is a concept to share data between nodes. For example if you have one task that selects the next target to shoot at, and you have a separate shooting-task (which has to know which target to shoot at). The CooldownDecorator as I implemented it, takes a config var which represents the cooldown time, that is just for the decorator instance, and not implemented in a blackboard, since you could have multiple CooldownDecorators with different times.

Does this answer your questions?

from behaviortree.js.

EnricoPietrocola avatar EnricoPietrocola commented on August 18, 2024

Question answered, thank you very much.
I actually decided to revert what I was doing and get my nodes to simply instantiate behaviortreeJS objects instead of trying to make a correct JSON. I'll update as soon as I have a working prototype.
Thanks again

from behaviortree.js.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.