Update: CC - SnailRunner - Entity Loaded (78gnds8jrj.js) 3 bytes modified
parent
c96a7d22ce
commit
96573154da
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in New Issue