Skip to content

Commit

Permalink
Remove SyncBackendFlush, init_async_colliders dummy systems
Browse files Browse the repository at this point in the history
  • Loading branch information
Aceeri committed Jul 26, 2023
1 parent e511b51 commit 9ee4610
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 10 deletions.
3 changes: 0 additions & 3 deletions bevy_rapier2d/examples/custom_system_setup2.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ fn main() {
PostUpdate,
(
PhysicsSet::SyncBackend,
PhysicsSet::SyncBackendFlush,
PhysicsSet::StepSimulation,
PhysicsSet::Writeback,
)
Expand All @@ -33,8 +32,6 @@ fn main() {
(
RapierPhysicsPlugin::<NoUserData>::get_systems(PhysicsSet::SyncBackend)
.in_set(PhysicsSet::SyncBackend),
RapierPhysicsPlugin::<NoUserData>::get_systems(PhysicsSet::SyncBackendFlush)
.in_set(PhysicsSet::SyncBackendFlush),
(
RapierPhysicsPlugin::<NoUserData>::get_systems(PhysicsSet::StepSimulation),
despawn_one_box,
Expand Down
3 changes: 0 additions & 3 deletions bevy_rapier3d/examples/custom_system_setup3.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ fn main() {
PostUpdate,
(
PhysicsSet::SyncBackend,
PhysicsSet::SyncBackendFlush,
PhysicsSet::StepSimulation,
PhysicsSet::Writeback,
)
Expand All @@ -33,8 +32,6 @@ fn main() {
(
RapierPhysicsPlugin::<NoUserData>::get_systems(PhysicsSet::SyncBackend)
.in_set(PhysicsSet::SyncBackend),
RapierPhysicsPlugin::<NoUserData>::get_systems(PhysicsSet::SyncBackendFlush)
.in_set(PhysicsSet::SyncBackendFlush),
(
RapierPhysicsPlugin::<NoUserData>::get_systems(PhysicsSet::StepSimulation),
despawn_one_box,
Expand Down
1 change: 1 addition & 0 deletions src/plugin/plugin.rs
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ where
.in_set(RapierTransformPropagateSet),
#[cfg(all(feature = "dim3", feature = "async-collider"))]
systems::init_async_scene_colliders.after(bevy::scene::scene_spawner_system),
#[cfg(all(feature = "dim3", feature = "async-collider"))]
systems::init_async_colliders,
systems::init_rigid_bodies,
systems::init_colliders,
Expand Down
4 changes: 0 additions & 4 deletions src/plugin/systems.rs
Original file line number Diff line number Diff line change
Expand Up @@ -695,10 +695,6 @@ pub fn step_simulation<Hooks>(
}
}

/// NOTE: This currently does nothing in 2D, or without the async-collider feature
#[cfg(any(feature = "dim2", not(feature = "async-collider")))]
pub fn init_async_colliders() {}

/// System responsible for creating `Collider` components from `AsyncCollider` components if the
/// corresponding mesh has become available.
#[cfg(all(feature = "dim3", feature = "async-collider"))]
Expand Down

0 comments on commit 9ee4610

Please sign in to comment.