nicholas-maltbie / OpenKCC

Open Source Kinematic Character Controller for Unity
http://nickmaltbie.com/OpenKCC/
MIT License
642 stars 60 forks source link

Character Jumping Bugfix #227

Closed nicholas-maltbie closed 1 year ago

nicholas-maltbie commented 1 year ago

Description

Identified source of bug causing player to stop when jumping up steps. Turns out the player was considered 'grounded' while jumping and cancelled momentum. So, I needed to stop this and only zero out the player momentum if they are not moving up.

Setup test and behavior to prevent player from losing momentum when jumping jump steps.

Closes #218

github-actions[bot] commented 1 year ago

Test Coverage Results for : Line Coverage: 100% Link to run results: https://github.com/nicholas-maltbie/OpenKCC/actions/runs/5774589691