Browse Source

Have the shapes follow the mouse

main
Luke Murphy 4 years ago
parent
commit
d55a8fe0c2
No known key found for this signature in database GPG Key ID: 5E2EF5A63E3718CC
  1. 4
      voicegardens/static/voicegardens.js

4
voicegardens/static/voicegardens.js

@ -272,8 +272,8 @@ class GeneratedShape {
/**
* Move the shape vectors.
**/
this.deltaX = this.destX - this.centerX;
this.deltaY = this.destY - this.centerY;
this.deltaX = mouseX - this.centerX;
this.deltaY = mouseY - this.centerY;
this.deltaX *= this.springing;
this.deltaY *= this.springing;

Loading…
Cancel
Save