Skip to content

Commit

Permalink
Originate the light from the center of the laser so it will be behind…
Browse files Browse the repository at this point in the history
… the glass, see #660
  • Loading branch information
samreid committed Feb 1, 2021
1 parent c9549a8 commit ac79bc6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions js/demo/ComponentsScreenView.js
Original file line number Diff line number Diff line change
Expand Up @@ -772,13 +772,13 @@ function demoLaserPointerNode( layoutBounds ) {

const leftBeamNode = new Rectangle( 0, 0, 1000, 40, {
fill: 'yellow',
right: leftLaserNode.left + 1,
right: leftLaserNode.centerX,
centerY: leftLaserNode.centerY
} );

const rightBeamNode = new Rectangle( 0, 0, 1000, 40, {
fill: 'yellow',
left: rightLaserNode.right - 1,
left: rightLaserNode.centerX,
centerY: rightLaserNode.centerY
} );

Expand Down

0 comments on commit ac79bc6

Please sign in to comment.