Skip to content

Commit

Permalink
Fixed the reset button for real, see #43
Browse files Browse the repository at this point in the history
  • Loading branch information
AgustinVallejo committed Nov 30, 2022
1 parent 2fa87ae commit f4efdb4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
2 changes: 2 additions & 0 deletions js/common/model/CommonModel.ts
Original file line number Diff line number Diff line change
Expand Up @@ -292,6 +292,8 @@ abstract class CommonModel<EngineType extends Engine = Engine> {
this.measuringTapeVisibleProperty.reset();
this.valuesVisibleProperty.reset();
this.moreDataProperty.reset();
this.setInitialBodyStates( this.resetModeInfo );
this.updateDefaultModeInfo();
this.labModeProperty.reset();
this.centerOfMass.visibleProperty.reset();
this.update();
Expand Down
6 changes: 0 additions & 6 deletions js/intro/model/IntroModel.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,12 +32,6 @@ class IntroModel extends CommonModel<NumericalEngine> {
{ mass: 10, position: new Vector2( 200, 0 ), velocity: new Vector2( 0, 100 ) }
];
}

public override reset(): void {
super.reset();
this.setInitialBodyStates( this.resetModeInfo );
this.update();
}
}

mySolarSystem.register( 'IntroModel', IntroModel );
Expand Down

0 comments on commit f4efdb4

Please sign in to comment.