A quick POC to recode the 2D Sonic physics.
A 2D Sonic Physics is composed of 360° walkable surfaces. Those surfaces are detected using a raycast to retrieve the slope and determine which physics operations are required to ensure good motion, like acceleration and deceleration, regarding the current slope angle to get momentum. Correct jump direction and air state to add a coherent jump mechanic are also supported.
Godot and the Godot C++ API are used. The physics is written in C++ and uses Godot objects to retrieve information from the scene.
- Add layer mechanic (to allow looping)
- Rate the current physics to add more processing for one move to avoid glitches when the player is too fast!
- Change the sprite animation regarding ground speed
- Add a camera regarding this guide


