Shapes follow the mouse now

This commit is contained in:
Luke Murphy 2020-02-05 11:04:07 +01:00
parent 2f5427a41a
commit 9a9a72bf21
No known key found for this signature in database
GPG Key ID: 5E2EF5A63E3718CC

View File

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