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

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."

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

1 participant