Skip to content

Commit

Permalink
Reduce side view amplitude, see #323
Browse files Browse the repository at this point in the history
  • Loading branch information
samreid committed Apr 2, 2019
1 parent ca6848a commit a2804ac
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions js/common/WaveInterferenceUtils.js
Original file line number Diff line number Diff line change
Expand Up @@ -61,9 +61,10 @@ define( require => {

// Typical values for the propagating wave can be between -5 and 5 (though values can exceed this range very close
// to the oscillating cell. We choose to map a value of 0 to the center of the wave area, and the max (5) to the
// desired distance amplitude. A wave value of 0 appears in the center of the wave area. A value of 5 appears 80
// screen view coordinates above the center line.
return Util.linear( 0, 5, waveAreaBounds.centerY, waveAreaBounds.centerY - 80, waveValue );
// desired distance amplitude. A wave value of 0 appears in the center of the wave area. A value of 5 appears 47
// screen view coordinates above the center line. This was tuned to prevent the water from going higher than the
// faucet.
return Util.linear( 0, 5, waveAreaBounds.centerY, waveAreaBounds.centerY - 47, waveValue );
}

/**
Expand Down

0 comments on commit a2804ac

Please sign in to comment.