From 90a5e19aa343f8be4db4d67cb2edf69909fbfb36 Mon Sep 17 00:00:00 2001 From: Oliver Zell Date: Sat, 5 Aug 2023 12:15:29 +0200 Subject: [PATCH] refactor: fix baumgarte typo --- src/Settings.ts | 2 +- src/dynamics/Contact.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Settings.ts b/src/Settings.ts index 093ffdc6..47a73ba5 100644 --- a/src/Settings.ts +++ b/src/Settings.ts @@ -137,7 +137,7 @@ export class Settings { * to 1 often lead to overshoot. */ static baumgarte: number = 0.2; - static toiBaugarte: number = 0.75; + static toiBaumgarte: number = 0.75; // Sleep diff --git a/src/dynamics/Contact.ts b/src/dynamics/Contact.ts index 661c85a7..9f71f334 100644 --- a/src/dynamics/Contact.ts +++ b/src/dynamics/Contact.ts @@ -732,7 +732,7 @@ export class Contact { // Track max constraint error. minSeparation = Math.min(minSeparation, separation); - const baumgarte = toi ? Settings.toiBaugarte : Settings.baumgarte; + const baumgarte = toi ? Settings.toiBaumgarte : Settings.baumgarte; const linearSlop = Settings.linearSlop; const maxLinearCorrection = Settings.maxLinearCorrection;