Skip to content

Commit 08c0e94

Browse files
committed
cleanup
1 parent 0261d2a commit 08c0e94

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/script.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -412,11 +412,11 @@ const tick = () =>
412412

413413
/**
414414
* Update position of the character
415-
* to point camera
415+
* for the camera
416416
*/
417417

418-
const position = new THREE.Vector3(character.position.x, 2.2, character.position.z)
419-
camera.lookAt( position )
418+
const newPosition = new THREE.Vector3(character.position.x, 2.2, character.position.z)
419+
camera.lookAt( newPosition )
420420
}
421421

422422
// Update orbit controls

0 commit comments

Comments
 (0)