Skip to content

Commit

Permalink
Updated Ceiling_Y constant. #253
Browse files Browse the repository at this point in the history
  • Loading branch information
Denz1994 committed Mar 13, 2018
1 parent fa5dc1d commit 34b65aa
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
2 changes: 1 addition & 1 deletion js/common/MassesAndSpringsConstants.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ define( function( require ) {
FLOOR_Y: 0,

// Y position of ceiling in meters. The ceiling is the top of the SpringHangerNode, just below the top of the dev view bounds
CEILING_Y: 1.48,
CEILING_Y: 1.47,

// {Property.<Range>} range of damping associated with sim
//RVEIEW: If exposing only Range, don't use a RangeWithValue? (or if used, document as such)
Expand Down
5 changes: 1 addition & 4 deletions js/common/model/MassesAndSpringsModel.js
Original file line number Diff line number Diff line change
Expand Up @@ -197,10 +197,7 @@ define( function( require ) {
*/
createSpring: function( x, tandem ) {
var spring = new Spring(
//REVIEW: Is the 0.01 an important constant?
//REVIEW: Might be related to this comment in DisplacementArrowNode:
//REVIEW: TODO: We should find out why this -0.01 is outside the modelViewTransform. It can be negative but why is the number value there? @denz1994
new Vector2( x, MassesAndSpringsConstants.CEILING_Y - 0.01 ),
new Vector2( x, MassesAndSpringsConstants.CEILING_Y ),
MassesAndSpringsConstants.DEFAULT_SPRING_LENGTH,
this.dampingProperty.get(),
tandem
Expand Down

0 comments on commit 34b65aa

Please sign in to comment.