bevy_dogoap - Integration of dogoap into Bevy's ECS model
Full Bevy + bevy_dogoap example:
use *;
use *;
// Define a DatumComponent as a struct with one member that can be either bool, f64 or u64
;
// Define a ActionComponent as a struct without any fields
;
// Create our system that handles executing of the EatAction
With this example, it should take about 2-3 frames until IsHungry is now set to false as the planner came up with a plan, added the EatAction component, our system handled the action and changed the DatumComponent
More Examples
bevy_basic.rs- Quickstart - Basic setup possible for integration betweendogoapand Bevyminer.rs- Long plans - How to setup more complicated interactionssneaky.rs- Player Interactions - How to usedogoapfor NPCs in a world with a player controlled entityvillages.rs- Nested Planners - How you can nest planners to achieve something smarterlemonade_stand.rs- Co-operating Planners - Shows how you can have two entities with two very different planners and "simulate" co-operation
Bevy Version Support
| bevy | bevy_dogoap |
|---|---|
| 0.14 | 0.2.0 |