Techokami / SonicWorldsNext

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

Player visual angle issues #195

Open EnceladusX2 opened 2 months ago

EnceladusX2 commented 2 months 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 2 months ago

I'll try to look into this this weekend.

EnceladusX2 commented 1 month 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.