Skip to content

Commit 8bfd4df

Browse files
authored
N43: seldom_state (#1302)
1 parent a3e7745 commit 8bfd4df

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

content/news/043/index.md

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -450,6 +450,27 @@ until a condition is met.
450450
[pecs]: https://github.com/jkb0o/pecs
451451
[ecs]: https://bevyengine.org/learn/book/getting-started/ecs
452452

453+
### [seldom_state]
454+
455+
[seldom_state] is a Bevy plugin that adds a `StateMachine` component that you
456+
can add to your entities. The state machine will change the entity's components
457+
based on states, triggers, and transitions that you define. It's useful
458+
for player controllers, animations, simple AI, etc.
459+
460+
This month [seldom_state] 0.4 has been released:
461+
462+
- Transition builders (`StateMachine::trans_builder`) which let you pass data
463+
from triggers to states.
464+
- The `AnyState` state, which you can use wherever `StateMachine` accepts state
465+
type parameters, which lets you create transitions from any state, etc
466+
- A `leafwing_input` feature for `leafwing-input-manager` integration,
467+
which enables 9 built-in triggers related to input. `JustPressedTrigger`,
468+
for example.
469+
- `OptionTrigger` and `BoolTrigger` traits, which are simpler to implement
470+
than `Trigger`.
471+
472+
[seldom_state]: https://github.com/Seldom-SE/seldom_state
473+
453474
## Popular Workgroup Issues in Github
454475

455476
<!-- Up to 10 links to interesting issues -->

0 commit comments

Comments
 (0)