2018-03-07 16:16:07 +01:00
|
|
|
if (!this.entityLoaded) {
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
|
|
|
|
if (!this.initialized) {
|
|
|
|
this.snail = this.entityLoaded.snail;
|
|
|
|
this.initialized = true;
|
|
|
|
}
|
|
|
|
|
2018-03-07 16:19:46 +01:00
|
|
|
this.snail.position.z += data.event.movementX * data.delta * 0.01;
|
|
|
|
this.snail.updateInstance('position');
|
|
|
|
|
2018-03-07 16:16:07 +01:00
|
|
|
console.log(data);
|
|
|
|
|
2018-03-07 16:14:56 +01:00
|
|
|
//@ sourceURL=mouseMove.js
|