Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixes some player's physics issues. #226

Merged
merged 1 commit into from
Jul 16, 2024

Conversation

mrezai
Copy link
Contributor

@mrezai mrezai commented Jul 16, 2024

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
Copy link
Owner

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

@Phazorknight Phazorknight self-assigned this Jul 16, 2024
Update stair stepping, now it's more compatible with Godot Jolt
New node added to player as body for rotation instead of using player's collision, useful for player with box collision
Separation of computed velocity from move_and_slide's velocity

Update save/load of body rotation in player state
@mrezai mrezai force-pushed the improve-player-physics-2 branch from a13fde4 to 00cbc01 Compare July 16, 2024 17:15
@mrezai
Copy link
Contributor Author

mrezai commented Jul 16, 2024

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

Copy link
Owner

@Phazorknight Phazorknight left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wasn't able to do a super-in-depth review, but in my tests, this all seems to work well.
Thanks again for this!

@Phazorknight Phazorknight merged commit 6dae750 into Phazorknight:main Jul 16, 2024
1 check passed
@mrezai mrezai deleted the improve-player-physics-2 branch July 17, 2024 04:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants