diff options
| author | rezural <rezural@protonmail.com> | 2020-12-20 04:27:20 +1100 |
|---|---|---|
| committer | rezural <rezural@protonmail.com> | 2020-12-21 04:23:11 +1100 |
| commit | 315b84a85e67077d5e5232f3c3f4f3d80b85db81 (patch) | |
| tree | cc55189967eadb98a7101ecb6ca9b352add25a89 /src_testbed/plugin.rs | |
| parent | 5634c51fe6efa2a1d3bd2e05fc2ba56094342bf8 (diff) | |
| download | rapier-315b84a85e67077d5e5232f3c3f4f3d80b85db81.tar.gz rapier-315b84a85e67077d5e5232f3c3f4f3d80b85db81.tar.bz2 rapier-315b84a85e67077d5e5232f3c3f4f3d80b85db81.zip | |
add plugins
cargo fmt
Diffstat (limited to 'src_testbed/plugin.rs')
| -rw-r--r-- | src_testbed/plugin.rs | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src_testbed/plugin.rs b/src_testbed/plugin.rs index 872cdf5..6da1404 100644 --- a/src_testbed/plugin.rs +++ b/src_testbed/plugin.rs @@ -10,3 +10,10 @@ pub trait TestbedPlugin { fn draw(&mut self); fn profiling_string(&self) -> String; } + +pub trait HarnessPlugin { + //FIXME: is run_callbacks needed? + fn run_callbacks(&mut self, physics: &mut PhysicsState, t: f32); + fn step(&mut self, physics: &mut PhysicsState); + fn profiling_string(&self) -> String; +} |
