Replace Kiss3d by Bevy for the testbed renderer.
This commit is contained in:
@@ -60,7 +60,7 @@ pub fn init_world(testbed: &mut Testbed) {
|
||||
/*
|
||||
* Setup a callback to control the platform.
|
||||
*/
|
||||
testbed.add_callback(move |_, _, physics, _, run_state| {
|
||||
testbed.add_callback(move |_, physics, _, run_state| {
|
||||
let platform = physics.bodies.get_mut(platform_handle).unwrap();
|
||||
let mut next_pos = *platform.position();
|
||||
|
||||
@@ -84,8 +84,3 @@ pub fn init_world(testbed: &mut Testbed) {
|
||||
testbed.set_world(bodies, colliders, joints);
|
||||
testbed.look_at(Point2::new(0.0, 1.0), 40.0);
|
||||
}
|
||||
|
||||
fn main() {
|
||||
let testbed = Testbed::from_builders(0, vec![("Kinematic body", init_world)]);
|
||||
testbed.run()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user