Skip to content

Commit

Permalink
refactor: fix baumgarte typo
Browse files Browse the repository at this point in the history
  • Loading branch information
zOadT committed Aug 5, 2023
1 parent dc890bf commit 8abac47
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Settings.ts
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,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

Expand Down
2 changes: 1 addition & 1 deletion src/dynamics/Contact.ts
Original file line number Diff line number Diff line change
Expand Up @@ -621,7 +621,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;

Expand Down

0 comments on commit 8abac47

Please sign in to comment.