Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

state_machine: include prev_state_name #69

Closed

Conversation

billmakes
Copy link
Contributor

state_machine:
I added another field on the state_machine for the previous state name.

The use-case for me personally was using it to calculate unique behavior based on where we came from. For example I want to enter jump state from wallgrab state, but I want the velocity direction to be slightly tweaked in the jump state's update method if we came from wallgrab.

Let me know your thoughts!

@1bardesign
Copy link
Owner

will need to sort out the history since you rolled stuff back in this timeline; probably reset to the main branch and then cherry pick the 2 line change for state machine.

@billmakes billmakes closed this Dec 15, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants