Comments (3)
Hey @EskelCz, Selector is sometimes referred as Priority, the name we use here. I always get confused when people use selector and sequence - priority avoid this kind of confusion.
I'm closing this issue, feel free to comment or reopen it if necessary.
from behavior3js.
Hi @renatopp, thanks for the answer.
I got the impression that Sequence is meant to call all nodes in you know, a sequence... but Selector to select just one. Hence the Selector. :)
I imagined a selector 'isEnemyNear' which would activate either actions 'idle' or 'run' based on some distance measuring logic. The simplest example imaginable.
From what I read in the documentation, the priority node seems to require the logic to be in the children, as to return SUCCESS or FAILURE to decide the tick propagation. Because I imagined the 'run' would always return success. Should there be another layer of nodes with the distance checking logic, before actions?
Or is it that ticking does not equal running the action? I'm confused :)
The simple example would help tremendously. Preferably with a node graph exported from the editor and the logic attached in code. That's a puzzler as well. :)
Thank you very much for clearing this out.
from behavior3js.
I've read some more about the topic, I see how I was wrong.
I recommend explanations and examples from this library:
https://github.com/libgdx/gdx-ai/wiki/Behavior-Trees
from behavior3js.
Related Issues (20)
- deploy to npm HOT 6
- How can I load JSON from the Editor into my game?
- how to compose 2 trees HOT 1
- bower.json not well formed HOT 1
- Wishlist for behavior3 HOT 2
- Add bower install to README.md HOT 1
- Modernize the codebase HOT 3
- npm package points to old version of the lib HOT 1
- MemSequence bug? HOT 2
- decorator limiter would not limiter the time between two tick from tree HOT 6
- about Tick._openNodes HOT 2
- Zoom reverse in the editor HOT 1
- parallel support? HOT 2
- behavior3.com domain expired HOT 1
- wiki page is blank HOT 1
- add custom node
- Is it still maintained? HOT 1
- Build tasks combines classes in wrong order, breaking inheritance HOT 1
- Build tasks combines classes in wrong order, breaking inheritanc HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from behavior3js.