In this project, I built a custom rigidbody-based character controller. All its actions, like jumping, climbing, and moving, are done with an HFSM (Hierarchical Finite State Machine), an implementation of the State Pattern.
Some features include:
- Ground Snapping and Slope control
- Custom Gravity
- Physics and Rigidbody interaction
- Variable Height Jump and Coyote
- Surface Climbing
- Relative movement (like sticking to a moving platform)
All the code is available at Github.
Swimming Up/Down -