Skip to content

Commit

Permalink
max distance to 5km, #265
Browse files Browse the repository at this point in the history
  • Loading branch information
zepumph committed May 18, 2020
1 parent f434db6 commit af68cde
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion js/GravityForceLabConstants.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import gravityForceLab from './gravityForceLab.js';
// constants
const MIN_MASS = 10; // kg
const MAX_MASS = 1000; // kg
const MAX_DISTANCE_FROM_CENTER = 4.8; // meters, empirically determined boundary for masses
const MAX_DISTANCE_FROM_CENTER = 5; // meters, empirically determined boundary for masses
const MASS_BLUE_COLOR = new Color( '#00f' );
const MASS_RED_COLOR = new Color( '#f00' );

Expand Down
3 changes: 3 additions & 0 deletions js/view/MassNode.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,9 @@ class MassNode extends ISLCObjectNode {
forceThresholdPercent: FORCE_THRESHOLD_PERCENT,
mapArrowWidthWithTwoFunctions: true
},
pullerNodeOptions: {
ropeLength: 40
},
y: MASS_NODE_Y_POSITION,
snapToNearest: GravityForceLabConstants.POSITION_SNAP_VALUE,
stepSize: GravityForceLabConstants.POSITION_STEP_SIZE,
Expand Down

0 comments on commit af68cde

Please sign in to comment.