change HarnessPlugin trait to add run_state to the step trait method
This commit is contained in:
@@ -166,7 +166,7 @@ impl Harness {
|
|||||||
.update(&self.physics.bodies, &self.physics.colliders);
|
.update(&self.physics.bodies, &self.physics.colliders);
|
||||||
|
|
||||||
for plugin in &mut self.plugins {
|
for plugin in &mut self.plugins {
|
||||||
plugin.step(&mut self.physics)
|
plugin.step(&mut self.physics, &self.state)
|
||||||
}
|
}
|
||||||
|
|
||||||
for f in &mut self.callbacks {
|
for f in &mut self.callbacks {
|
||||||
|
|||||||
@@ -10,6 +10,6 @@ pub trait HarnessPlugin {
|
|||||||
harness_state: &RunState,
|
harness_state: &RunState,
|
||||||
t: f32,
|
t: f32,
|
||||||
);
|
);
|
||||||
fn step(&mut self, physics: &mut PhysicsState);
|
fn step(&mut self, physics: &mut PhysicsState, run_state: &RunState);
|
||||||
fn profiling_string(&self) -> String;
|
fn profiling_string(&self) -> String;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user