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

Add avian3d support #46

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open

Add avian3d support #46

wants to merge 2 commits into from

Conversation

chompaa
Copy link

@chompaa chompaa commented Jan 5, 2025

This PR adds support for avian3d via the avian feature. Here's a list of changes:

  • Add a controller_avian module and minimal_avian example, feature gated behind the avian feature.
  • Move the controller to controller_rapier and minimal example to minimal_rapier feature gating them behind the rapier feature.
  • Add a controller module that reexports both controller modules, so you can still import with use bevy_fps_controller::controller::*

I think there is a bug with overhang_component in controller_avian, since edge fall prevention doesn't seem to be working 100% of the time -- I couldn't crack this unfortunately. My (minimal) testing has shown identical behavior otherwise.

I understand that this is a large diff, so if you'd like a different approach I'd be happy to comply.

@qhdwight
Copy link
Owner

qhdwight commented Jan 5, 2025

Woah nice! I will take a look, thanks

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