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

One-way platform support for the KinematicCharacterController #502

Open
DevinLeamy opened this issue Jul 9, 2023 · 0 comments
Open

One-way platform support for the KinematicCharacterController #502

DevinLeamy opened this issue Jul 9, 2023 · 0 comments
Labels
2D The issue is specifically about the 2D version of Rapier. 3D The issue is specifically about the 3D version of Rapier. A-Dynamics C-Enhancement New feature or request D-Medium P-Low

Comments

@DevinLeamy
Copy link

Overview

One-way platforms are not supported for the KinematicCharacterController because it doesn't depend on the "solver" to resolve collisions.

E.g. following the conventional approach and using PhysicsHooks will not work.

impl BevyPhysicsHooks for OneWayPlatformHook {
    fn modify_solver_contacts(&self, context: ContactModificationContextView) {
        context.raw.update_as_oneway_platform(...);
    }
}

For the KinematicCharacterController to support one-way platforms, "it would have to run some checks internally to ignore collisions with normals outside of a particular angle wrt. the up direction."

@Vrixyz Vrixyz added 2D The issue is specifically about the 2D version of Rapier. 3D The issue is specifically about the 3D version of Rapier. A-Dynamics P-Low D-Medium C-Enhancement New feature or request labels Jun 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
2D The issue is specifically about the 2D version of Rapier. 3D The issue is specifically about the 3D version of Rapier. A-Dynamics C-Enhancement New feature or request D-Medium P-Low
Projects
None yet
Development

No branches or pull requests

2 participants