Update: CC - SnailRunner - Mouse Move (8nu6b5p9pb.js) 139 bytes modified
parent
82eefedcc4
commit
1276481ba8
|
@ -8,6 +8,15 @@ if (!this.initialized) {
|
|||
}
|
||||
|
||||
this.snail.position.z += data.event.movementX * data.delta * 0.000001;
|
||||
|
||||
if (this.snail.position.z < -0.1) {
|
||||
this.snail.position.z = -0.1;
|
||||
}
|
||||
|
||||
if (this.snail.position.z > 0.1) {
|
||||
this.snail.position.z = 0.1;
|
||||
}
|
||||
|
||||
this.snail.updateInstance('position');
|
||||
|
||||
//@ sourceURL=mouseMove.js
|
Loading…
Reference in New Issue