Skip to content

Documentation doesn’t represents the behaviour #128

@cacilhas

Description

@cacilhas

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions