@@ -1248,21 +1248,17 @@ fn update_testbed(
12481248 state
12491249 . action_flags
12501250 . set ( TestbedActionFlags :: TAKE_SNAPSHOT , false ) ;
1251- // FIXME
1252- println ! (
1253- "!!!!!!!!! Snapshots are not working any more. Requires broad-phase serialization."
1254- ) ;
1255- // state.snapshot = PhysicsSnapshot::new(
1256- // harness.state.timestep_id,
1257- // &*harness.physics.broad_phase,
1258- // &harness.physics.narrow_phase,
1259- // &harness.physics.islands,
1260- // &harness.physics.bodies,
1261- // &harness.physics.colliders,
1262- // &harness.physics.impulse_joints,
1263- // &harness.physics.multibody_joints,
1264- // )
1265- // .ok();
1251+ state. snapshot = PhysicsSnapshot :: new (
1252+ harness. state . timestep_id ,
1253+ & harness. physics . broad_phase ,
1254+ & harness. physics . narrow_phase ,
1255+ & harness. physics . islands ,
1256+ & harness. physics . bodies ,
1257+ & harness. physics . colliders ,
1258+ & harness. physics . impulse_joints ,
1259+ & harness. physics . multibody_joints ,
1260+ )
1261+ . ok ( ) ;
12661262
12671263 if let Some ( snap) = & state. snapshot {
12681264 snap. print_snapshot_len ( ) ;
0 commit comments