Shapes follow the mouse now
This commit is contained in:
parent
2f5427a41a
commit
9a9a72bf21
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user