rapier_testbed2d 0.33.0

Testbed for the Rapier 2-dimensional physics engine in Rust.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
use crate::PhysicsState;
use crate::harness::RunState;
use crate::physics::PhysicsEvents;

pub trait HarnessPlugin {
    fn run_callbacks(
        &mut self,
        physics: &mut PhysicsState,
        events: &PhysicsEvents,
        harness_state: &RunState,
    );
    fn step(&mut self, physics: &mut PhysicsState, run_state: &RunState);
    fn profiling_string(&self) -> String;
}