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

Documentation doesn’t represents the behaviour #128

Open
cacilhas opened this issue Jan 10, 2025 · 1 comment
Open

Documentation doesn’t represents the behaviour #128

cacilhas opened this issue Jan 10, 2025 · 1 comment

Comments

@cacilhas
Copy link

Wherever I look I find examples like this:

fn setup_gravity(mut rapier_config: ResMut<RapierConfiguration>) {
  rapier_config.gravity = Vec2::new(0.0, -9.81);
}

However the compiler gives the error:

error[E0277]: bevy_rapier2d::plugin::RapierConfiguration is not a Resource

How to configure gravity and other Rapier setting?

The whole documentation is quite bad. If I had a better experience with Rapier I could fix it, but I don’t have. Could you make the docs a bit more searchable?

@Vrixyz
Copy link
Contributor

Vrixyz commented Jan 10, 2025

Thanks for the report ; we're working on updating the website documentation. In the meantime looking at official examples and changelog is the most actionable suggestion I can give.

(RapierConfiguration is now a component, which you can query through Query<&RapierConfiguration, With<DefaultRapierContext>)

I'm moving this to rapier.rs, the website repository.

@Vrixyz Vrixyz transferred this issue from dimforge/rapier Jan 10, 2025
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