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 12, 2023
1 parent 71204d2 commit 48d4cd4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions src/Settings.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -219,8 +219,8 @@ export class SettingsInternal {
static get baumgarte() {
return Settings.baumgarte;
}
static get toiBaugarte() {
return Settings.toiBaugarte;
static get toiBaumgarte() {
return Settings.toiBaumgarte;
}
static get timeToSleep() {
return Settings.timeToSleep;
Expand Down
2 changes: 1 addition & 1 deletion src/dynamics/Contact.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit 48d4cd4

Please sign in to comment.