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?