Skip to content

Commit

Permalink
Clear thermal energy whenever skater is grabbed, see #32
Browse files Browse the repository at this point in the history
  • Loading branch information
samreid committed Nov 22, 2013
1 parent 870efb8 commit a061375
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions js/view/SkaterNode.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,9 @@ define( function( require ) {
start: function( event ) {
skater.dragging = true;

//Clear thermal energy whenever skater is grabbed, see https://github.com/phetsims/energy-skate-park-basics/issues/32
skater.thermalEnergy = 0;

//Jump to the input location when dragged
this.drag( event );
},
Expand Down

0 comments on commit a061375

Please sign in to comment.