diff --git a/78gnds8jrj.js b/78gnds8jrj.js index 39d85f6..8c9d0ee 100644 --- a/78gnds8jrj.js +++ b/78gnds8jrj.js @@ -42,7 +42,7 @@ this.maximumCameraSettings = new THREE.Vector3(0, 2.6, 90); this.currentCameraSettings = new THREE.Vector3(0, 1.1, 40); this.intitialSnailSettings = new THREE.Vector3(0, 0, 0); -this.maximumSnailSettings = new THREE.Vector3(0, 0, 0); +this.maximumSnailSettings = new THREE.Vector3(0.5, 0, 0); this.currentSnailSettings = new THREE.Vector3(0, 0, 0); this.currentSnailPosition = new THREE.Vector3(0, 0, 0); @@ -206,17 +206,16 @@ GameLib.CustomCode.prototype.adjustSpeed = function(delta) { GameLib.CustomCode.prototype.adjustSnailPosition = function(delta) { - /* + this.currentSnailSettings.lerpVectors( this.initialSnailSettings, this.maximumSnailSettings, this.speedPercentage ); - */ this.currentSnailPosition.z = this.snail.position.z; - this.currentSnailPosition.lerp(this.targetSnailPosition, this.speedPercentage); + this.currentSnailPosition.lerp(this.targetSnailPosition, this.currentSnailSettings.x); this.snail.position.z = this.currentSnailPosition.z;