From c7f49dcd323a10617d173ae19a4d116f5ef56813 Mon Sep 17 00:00:00 2001 From: Kevin Lee <klee@mozilla.com> Date: Sun, 22 Apr 2018 13:45:36 -0700 Subject: [PATCH] use const --- src/components/character-controller.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/character-controller.js b/src/components/character-controller.js index b8fb2a529..48dacb104 100644 --- a/src/components/character-controller.js +++ b/src/components/character-controller.js @@ -89,7 +89,7 @@ AFRAME.registerComponent("character-controller", { const rotationInvMatrix = new THREE.Matrix4(); const pivotRotationMatrix = new THREE.Matrix4(); const pivotRotationInvMatrix = new THREE.Matrix4(); - let start = new THREE.Vector3(); + const start = new THREE.Vector3(); return function(t, dt) { const deltaSeconds = dt / 1000; -- GitLab