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

Compatibility with bevy_rapier2d #7

Open
Jokler opened this issue Jul 17, 2024 · 2 comments
Open

Compatibility with bevy_rapier2d #7

Jokler opened this issue Jul 17, 2024 · 2 comments

Comments

@Jokler
Copy link

Jokler commented Jul 17, 2024

This panics right away, is there some way to order the plugins to resolve this?

fn main() {
    App::new()
        .add_plugins(DefaultPlugins)
        .add_plugins((
            RapierPhysicsPlugin::<NoUserData>::pixels_per_meter(100.0),
            TraumaPlugin,
        ))
        .run();
}
thread 'main' panicked at /home/jokler/.local/share/cargo/registry/src/index.crates.io-6f17d22bba15001f/bevy_ecs-0.14.0/src/schedule/schedule.rs:383:33:

Error when initializing schedule PostUpdate: Tried to order against
`SystemTypeSet(
fn FunctionSystem<fn(
  ParamSet<(
    Query<(Transform, &mut GlobalTransform), (Or<(Changed<Transform>, Added<GlobalTransform>)>, Without<Parent>, Without<Children>)>,
    Query<(Ref<Transform>, &mut GlobalTransform), (Without<Parent>, Without<Children>)>
  )>,
  RemovedComponents<Parent>
),
sync_simple_transforms>()
)`
in a schedule that has more than one
`SystemTypeSet(
  fn FunctionSystem<fn(
    ParamSet<(
    Query<(Transform, &mut GlobalTransform), (Or<(Changed<Transform>, Added<GlobalTransform>)>, Without<Parent>, Without<Children>)>,
    Query<(Ref<Transform>, &mut GlobalTransform), (Without<Parent>, Without<Children>)>
    )>,
    RemovedComponents<Parent>
  ),
  sync_simple_transforms>()
)`
instance.

`SystemTypeSet(
  fn FunctionSystem<fn(
    ParamSet<(
      Query<(Transform, &mut GlobalTransform), (Or<(Changed<Transform>, Added<GlobalTransform>)>, Without<Parent>, Without<Children>)>,
      Query<(Ref<Transform>, &mut GlobalTransform), (Without<Parent>, Without<Children>)>
    )>,
    RemovedComponents<Parent>
  ),
  sync_simple_transforms>()
)`
is a `SystemTypeSet` and cannot be used for ordering if ambiguous. Use a different set without this restriction.

jamessizeland added a commit to jamessizeland/bevy_trauma_shake that referenced this issue Aug 28, 2024
@jamessizeland
Copy link

Opened PR, I think I've found the fix. #9

@Jokler
Copy link
Author

Jokler commented Sep 12, 2024

To be clear, #9 fixed it for me too.

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