use fixed timestep
This commit is contained in:
parent
031d4815e2
commit
0f1c24ed37
1 changed files with 3 additions and 4 deletions
|
@ -37,10 +37,9 @@ fn rotate_point(pt: &Vec3, rot: &Quat) -> Vec3 {
|
|||
}
|
||||
|
||||
pub(super) fn timestep_setup(mut config: ResMut<RapierConfiguration>) {
|
||||
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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue