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.
|
* Move the shape vectors.
|
||||||
**/
|
**/
|
||||||
this.deltaX = this.destX - this.centerX;
|
this.deltaX = mouseX - this.centerX;
|
||||||
this.deltaY = this.destY - this.centerY;
|
this.deltaY = mouseY - this.centerY;
|
||||||
|
|
||||||
this.deltaX *= this.springing;
|
this.deltaX *= this.springing;
|
||||||
this.deltaY *= this.springing;
|
this.deltaY *= this.springing;
|
||||||
|
Loading…
Reference in New Issue
Block a user