Skip to content

Commit

Permalink
Speed up return animation to bounds.
Browse files Browse the repository at this point in the history
  • Loading branch information
Denz1994 committed Dec 16, 2019
1 parent 30f5c14 commit d3c1c5c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js/model/Atom2.js
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ define( require => {
if ( distance > 0 ) {

// Responsible for the tempo of the animation.
this.animationProgress = Math.min( 1, this.animationProgress + dt );
this.animationProgress = Math.min( 1, this.animationProgress + dt * 2 );
const ratio = Easing.CUBIC_IN_OUT.value( this.animationProgress );

// Update the position of the atom
Expand Down

0 comments on commit d3c1c5c

Please sign in to comment.