Skip to content

Commit

Permalink
Fixing VectorNode, see phetsims/my-solar-system#104
Browse files Browse the repository at this point in the history
  • Loading branch information
AgustinVallejo committed Mar 15, 2023
1 parent 5fdd099 commit 16d5fb2
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions js/keplers-laws/view/KeplersLawsScreenView.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ import OrbitalWarningMessage from './OrbitalWarningMessage.js';
import StopwatchNode from '../../../../scenery-phet/js/StopwatchNode.js';
import DistancesDisplayNode from './DistancesDisplayNode.js';
import keplersLaws from '../../keplersLaws.js';
import NumberProperty from '../../../../axon/js/NumberProperty.js';

// constants
const MARGIN = 10;
Expand Down Expand Up @@ -96,12 +97,12 @@ class KeplersLawsScreenView extends SolarSystemCommonScreenView {
// Gravity force vectors
this.componentsLayer.addChild( new VectorNode(
body, this.modelViewTransformProperty, model.gravityVisibleProperty, body.forceProperty,
0.05, { fill: PhetColorScheme.GRAVITATIONAL_FORCE }
new NumberProperty( 0 ), { fill: PhetColorScheme.GRAVITATIONAL_FORCE }
) );

this.componentsLayer.addChild( new VectorNode(
sun, this.modelViewTransformProperty, model.gravityVisibleProperty, sun.forceProperty,
0.05, { fill: PhetColorScheme.GRAVITATIONAL_FORCE }
new NumberProperty( 0 ), { fill: PhetColorScheme.GRAVITATIONAL_FORCE }
) );

const ellipticalOrbitNode = new EllipticalOrbitNode( model, this.modelViewTransformProperty );
Expand Down

0 comments on commit 16d5fb2

Please sign in to comment.