diff --git a/js/gravity-force-lab-basics/model/GravityForceLabBasicsModel.js b/js/gravity-force-lab-basics/model/GravityForceLabBasicsModel.js index 3ba4e17..fa58e31 100644 --- a/js/gravity-force-lab-basics/model/GravityForceLabBasicsModel.js +++ b/js/gravity-force-lab-basics/model/GravityForceLabBasicsModel.js @@ -56,7 +56,10 @@ define( function( require ) { var leftBoundary = GravityForceLabBasicsConstants.LEFT_MASS_BOUNDARY; var rightBoundary = GravityForceLabBasicsConstants.RIGHT_MASS_BOUNDARY; - InverseSquareLawModel.call( this, InverseSquareLawCommonConstants.G, mass1, mass2, leftBoundary, rightBoundary, tandem.createTandem( 'gravityForceLabBasicsModel' ) ); + InverseSquareLawModel.call( this, InverseSquareLawCommonConstants.G, mass1, mass2, leftBoundary, rightBoundary, tandem.createTandem( 'gravityForceLabBasicsModel' ), { + snapObjectsToNearest: GravityForceLabBasicsConstants.MASS_POSITION_DELTA, + minSeparationBetweenObjects: 200 // in meters + } ); } diff --git a/js/gravity-force-lab-basics/view/GFLBMassNode.js b/js/gravity-force-lab-basics/view/GFLBMassNode.js index f08191b..a450505 100644 --- a/js/gravity-force-lab-basics/view/GFLBMassNode.js +++ b/js/gravity-force-lab-basics/view/GFLBMassNode.js @@ -14,7 +14,6 @@ define( function( require ) { var inherit = require( 'PHET_CORE/inherit' ); var RangeWithValue = require('DOT/RangeWithValue'); var RadialGradient = require( 'SCENERY/util/RadialGradient' ); - var GravityForceLabBasicsConstants = require( 'GRAVITY_FORCE_LAB_BASICS/gravity-force-lab-basics/GravityForceLabBasicsConstants' ); var PhetFont = require( 'SCENERY_PHET/PhetFont' ); var ObjectNode = require('INVERSE_SQUARE_LAW_COMMON/view/ObjectNode'); @@ -35,7 +34,7 @@ define( function( require ) { labelFont: new PhetFont( 25 ), labelMaxWidth: 40, forceReadoutDecimalPlaces: 1, - snapToNearest: GravityForceLabBasicsConstants.MASS_POSITION_DELTA // in meters, charges will snap to the nearest 0.1 meters in model coordinates + snapToNearest: model.snapObjectsToNearest // in meters, charges will snap to the nearest 0.1 meters in model coordinates }, options ); // @private