Update: CC - SnailRunner - Entity Loaded (78gnds8jrj.js) 3 bytes modified

beta.r3js.org
-=yb4f310 2018-03-09 17:42:43 +01:00
parent c96a7d22ce
commit 96573154da
1 changed files with 3 additions and 4 deletions

View File

@ -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;