Skip to content

Conversation

@TaeRaeKim
Copy link

Fixed JumpState Bug

The state should transition to WalkState when the velocity value is greater than 0.1f, otherwise it should transition to IdleState.

Before modification

Simply jump in place

jumpToIdle

  • Expected : JumpState -> IdleState
  • Actual : JumpState -> WalkState -> IdleState

When moving after landing

jumpToWalk

  • Expected : JumpState -> WalkState
  • Actual : JumpState -> IdleState -> WalkState

After modification

States transition correctly

afterFix

- It should be walkState when the velocity value is greater than 0.1f, otherwise it should be IdleState.
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.

1 participant