Have the shapes follow the mouse
This commit is contained in:
parent
6cc2475dbd
commit
d55a8fe0c2
@ -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…
Reference in New Issue
Block a user