Techokami / SonicWorldsNext

Official development repository for the successor to Sonic Worlds Delta
MIT License
139 stars 29 forks source link

Player visual angle issues #195

Open EnceladusX2 opened 1 month ago

EnceladusX2 commented 1 month ago

When moving along any sloped surface that would change the player's visual angle, their sprite rotation tends to reset to 0 at what feels like random intervals. It's definitely not intended behavior.

https://github.com/user-attachments/assets/e71cfc7d-3158-4e68-a4de-4f3720d37ee3

Caverns4 commented 1 month ago

I'll try to look into this this weekend.

EnceladusX2 commented 4 weeks ago

Did some testing and seem to have boiled this down to the angle collected from collision normals being slightly inconsistent. Logically that makes sense, but with the way this framework handles sprite rotation that's not good. It might be worth just reworking sprite rotation instead of rewriting how the ground angle is collected.