use fixed timestep

This commit is contained in:
Joe Ardent 2023-02-23 13:38:39 -08:00
parent 031d4815e2
commit 0f1c24ed37

View file

@ -37,10 +37,9 @@ fn rotate_point(pt: &Vec3, rot: &Quat) -> Vec3 {
} }
pub(super) fn timestep_setup(mut config: ResMut<RapierConfiguration>) { pub(super) fn timestep_setup(mut config: ResMut<RapierConfiguration>) {
let ts = TimestepMode::Interpolated { let ts = TimestepMode::Fixed {
dt: 1.0 / 55.0, dt: 1.0 / 60.0,
time_scale: 1.0, substeps: 2,
substeps: 16,
}; };
config.timestep_mode = ts; config.timestep_mode = ts;
} }