Have the shapes follow the mouse

This commit is contained in:
Luke Murphy 2020-02-03 08:46:50 +01:00
parent 6cc2475dbd
commit d55a8fe0c2
No known key found for this signature in database
GPG Key ID: 5E2EF5A63E3718CC

View File

@ -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;