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

Bug | Player doesn't snap to floor when the difference in height is small #7

Open
Sp1cyP3pp3r opened this issue Nov 8, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@Sp1cyP3pp3r
Copy link
Owner

Look into

func snap_to_floor(delta):
	if player.legs.is_ray_floor() and player.velocity.y >= 0:
		player.global_position.y = player.legs.get_floor_point().y - snap_margin

in https://github.com/Sp1cyP3pp3r/Passion-Parkour-Game/blob/main/Characters/StateMachine/player_state.gd and https://github.com/Sp1cyP3pp3r/Passion-Parkour-Game/blob/main/Characters/legs.gd

@Sp1cyP3pp3r Sp1cyP3pp3r added the bug Something isn't working label Nov 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant