From af68cde60f334dafaae7c008570cda55adad5da4 Mon Sep 17 00:00:00 2001 From: zepumph Date: Mon, 18 May 2020 15:13:16 -0800 Subject: [PATCH] max distance to 5km, https://github.com/phetsims/gravity-force-lab/issues/265 --- js/GravityForceLabConstants.js | 2 +- js/view/MassNode.js | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/js/GravityForceLabConstants.js b/js/GravityForceLabConstants.js index 924f80be..fa20c1e3 100644 --- a/js/GravityForceLabConstants.js +++ b/js/GravityForceLabConstants.js @@ -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' ); diff --git a/js/view/MassNode.js b/js/view/MassNode.js index cb1bdf42..f397370a 100644 --- a/js/view/MassNode.js +++ b/js/view/MassNode.js @@ -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,