From 96573154da32d9cb0fccfe28559f7b7ce7d0be37 Mon Sep 17 00:00:00 2001 From: -=yb4f310 Date: Fri, 9 Mar 2018 17:42:43 +0100 Subject: [PATCH] Update: CC - SnailRunner - Entity Loaded (78gnds8jrj.js) 3 bytes modified --- 78gnds8jrj.js | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) 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;