From 0f1c24ed37608fdd764b8a24c7401fef9d095791 Mon Sep 17 00:00:00 2001 From: Joe Ardent Date: Thu, 23 Feb 2023 13:38:39 -0800 Subject: [PATCH] use fixed timestep --- src/action/systems.rs | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/action/systems.rs b/src/action/systems.rs index 1f29e12..5581cf8 100644 --- a/src/action/systems.rs +++ b/src/action/systems.rs @@ -37,10 +37,9 @@ fn rotate_point(pt: &Vec3, rot: &Quat) -> Vec3 { } pub(super) fn timestep_setup(mut config: ResMut) { - let ts = TimestepMode::Interpolated { - dt: 1.0 / 55.0, - time_scale: 1.0, - substeps: 16, + let ts = TimestepMode::Fixed { + dt: 1.0 / 60.0, + substeps: 2, }; config.timestep_mode = ts; }