diff --git a/src/components/character-controller.js b/src/components/character-controller.js index b8fb2a529e9a1ee62db42c619059848f8b406e63..48dacb104d30f315223fe035f7525ef763dccc17 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;