Skip to content

Commit

Permalink
fix event handlings (remove event_update_system)
Browse files Browse the repository at this point in the history
  • Loading branch information
Vrixyz committed Jun 12, 2024
1 parent bb05c4c commit 003f1af
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions src/plugin/plugin.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ use crate::plugin::configuration::SimulationToRenderTime;
use crate::plugin::{systems, RapierConfiguration, RapierContext};
use crate::prelude::*;
use bevy::ecs::{
event::{event_update_system, Events},
intern::Interned,
schedule::{ScheduleLabel, SystemConfigs},
system::SystemParamItem,
Expand Down Expand Up @@ -107,16 +106,11 @@ where
)
.chain()
.into_configs(),
PhysicsSet::StepSimulation => (
systems::step_simulation::<PhysicsHooks>,
event_update_system.before(systems::step_simulation::<PhysicsHooks>),
)
.into_configs(),
PhysicsSet::StepSimulation => (systems::step_simulation::<PhysicsHooks>).into_configs(),
PhysicsSet::Writeback => (
systems::update_colliding_entities,
systems::writeback_rigid_bodies,
systems::writeback_mass_properties,
event_update_system.after(systems::writeback_mass_properties),
)
.into_configs(),
}
Expand Down

0 comments on commit 003f1af

Please sign in to comment.