Phazorknight / Cogito

Immersive Sim Template Project for GODOT 4
MIT License
799 stars 90 forks source link

Fixes some player's physics issues. #226

Closed mrezai closed 1 month ago

mrezai commented 1 month ago

Update stair stepping, now it's more compatible with Godot Jolt, previous code is a port of my Godot 3.5 implementation and new code added from updated version of main repository: https://github.com/mrezai/GodotStairs New node added to player as body to handle rotation instead of using player's collision, useful for player with box collision(prevent player from unwanted fall on ledges). Separation of computed velocity from move_and_slide's velocity, previous code cause unwanted damage to player for example after jump on objects.

Phazorknight commented 1 month ago

Woah, thanks so much for this. It's gonna take me a hot minute to fully check and test this.

mrezai commented 1 month ago

Sorry I forgot to update save/loading of rotation in player state. I add it to current PR.