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

Platformer example clipping into the ground for 1 frame #309

Open
gusinacio opened this issue Mar 18, 2024 · 1 comment
Open

Platformer example clipping into the ground for 1 frame #309

gusinacio opened this issue Mar 18, 2024 · 1 comment

Comments

@gusinacio
Copy link

If I jump from a a high altitude, when reaching the ground it clips through the ground 1 frame and then it gets back to "normal".

I'm using the Platformer example as a starting point and I don't know what part of rapier is causing this (or if is a problem of the example itself)

@Trouv
Copy link
Owner

Trouv commented Mar 20, 2024

Yes, the platformer example does have some jank like this. It is most likely our very basic usage of rapier that causes it, not rapier. It's not necessarily intended to be a perfect platformer, just something simple that touches many features of bevy_ecs_ldtk. I think users should be able to configure the player character more effectively using existing rapier components that minimize this sort of issue.

One thing I haven't tried using yet is rapier's character controller. This might resolve some of the issues since it's an official rapier solution, and would probably help reduce much of the platformer example code. I might try rewriting the platformer example to use it someday.

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

No branches or pull requests

2 participants