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

Keeping only physics plugins doesn't work after migration from XPBD #514

Open
Shatur opened this issue Sep 12, 2024 · 0 comments
Open

Keeping only physics plugins doesn't work after migration from XPBD #514

Shatur opened this issue Sep 12, 2024 · 0 comments

Comments

@Shatur
Copy link

Shatur commented Sep 12, 2024

I migrating from xpbd to avian.
Previosly my setup was like this:

            PhysicsPlugins::default()
                .build()
                .disable::<IntegratorPlugin>()
                .disable::<SolverPlugin>()
                .disable::<SleepingPlugin>(),

But after migration to avian it crashes with the following message:

Error when initializing schedule PhysicsSchedule: Systems with conflicting access have indeterminate run order.
26 pairs of systems with conflicting data access have indeterminate execution order. Consider adding `before`, `after`, or `ambiguous_with` relationships between these:
 -- solve_swept_ccd (in sets PostSubstep, SweptCcdSet) and run_substep_schedule (in set Substep)
    conflict on: bevy_ecs::world::World
 -- solve_swept_ccd (in sets PostSubstep, SweptCcdSet) and collect_collision_pairs (in sets BroadPhase, CollectCollisions)
    conflict on: ["avian3d::collision::broad_phase::AabbIntersections"]
 -- solve_swept_ccd (in sets PostSubstep, SweptCcdSet) and update_child_collider_position (in sets First, NarrowPhase)
    conflict on: ["avian3d::position::Position", "avian3d::position::Rotation"]
 -- solve_swept_ccd (in sets PostSubstep, SweptCcdSet) and run_post_process_collisions_schedule (in sets NarrowPhase, PostProcess)
    conflict on: bevy_ecs::world::World
 -- solve_swept_ccd (in sets PostSubstep, SweptCcdSet) and update_ray_caster_positions (in set SpatialQuery)
    conflict on: ["avian3d::position::Rotation"]
 -- solve_swept_ccd (in sets PostSubstep, SweptCcdSet) and update_shape_caster_positions (in set SpatialQuery)
    conflict on: ["avian3d::position::Rotation"]
 -- solve_swept_ccd (in sets PostSubstep, SweptCcdSet) and <SpatialQueryPlugin as Plugin>::{{closure}} (in set SpatialQuery)
    conflict on: ["avian3d::position::Rotation"]
 -- solve_swept_ccd (in sets PostSubstep, SweptCcdSet) and raycast (in set SpatialQuery)
    conflict on: ["avian3d::position::Rotation"]
 -- solve_swept_ccd (in sets PostSubstep, SweptCcdSet) and shapecast (in set SpatialQuery)
    conflict on: ["avian3d::position::Rotation"]
 -- run_substep_schedule (in set Substep) and update_aabb_intervals (in sets BroadPhase, UpdateStructures)
    conflict on: bevy_ecs::world::World
 -- run_substep_schedule (in set Substep) and add_new_aabb_intervals (in sets BroadPhase, UpdateStructures)
    conflict on: bevy_ecs::world::World
 -- run_substep_schedule (in set Substep) and collect_collision_pairs (in sets BroadPhase, CollectCollisions)
    conflict on: bevy_ecs::world::World
 -- run_substep_schedule (in set Substep) and propagate_collider_transforms (in sets First, NarrowPhase)
    conflict on: bevy_ecs::world::World
 -- run_substep_schedule (in set Substep) and update_child_collider_position (in sets First, NarrowPhase)
    conflict on: bevy_ecs::world::World
 -- run_substep_schedule (in set Substep) and reset_collision_states
    conflict on: bevy_ecs::world::World
 -- run_substep_schedule (in set Substep) and log_overlap_at_spawn (in sets NarrowPhase, PostProcess)
    conflict on: bevy_ecs::world::World
 -- run_substep_schedule (in set Substep) and run_post_process_collisions_schedule (in sets NarrowPhase, PostProcess)
    conflict on: bevy_ecs::world::World
 -- run_substep_schedule (in set Substep) and <NarrowPhasePlugin<Collider> as Plugin>::{{closure}}
    conflict on: bevy_ecs::world::World
 -- run_substep_schedule (in set Substep) and report_contacts (in set ReportContacts)
    conflict on: bevy_ecs::world::World
 -- run_substep_schedule (in set Substep) and remove_ended_collisions
    conflict on: bevy_ecs::world::World
 -- run_substep_schedule (in set Substep) and update_ray_caster_positions (in set SpatialQuery)
    conflict on: bevy_ecs::world::World
 -- run_substep_schedule (in set Substep) and update_shape_caster_positions (in set SpatialQuery)
    conflict on: bevy_ecs::world::World
 -- run_substep_schedule (in set Substep) and <SpatialQueryPlugin as Plugin>::{{closure}} (in set SpatialQuery)
    conflict on: bevy_ecs::world::World
 -- run_substep_schedule (in set Substep) and raycast (in set SpatialQuery)
    conflict on: bevy_ecs::world::World
 -- run_substep_schedule (in set Substep) and shapecast (in set SpatialQuery)
    conflict on: bevy_ecs::world::World
 -- run_substep_schedule (in set Substep) and handle_rigid_body_removals
    conflict on: bevy_ecs::world::World
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

1 participant