Skip to content

Commit

Permalink
Fix camera "detaching" at long distances
Browse files Browse the repository at this point in the history
  • Loading branch information
surrsurus committed May 29, 2024
1 parent f8c7bee commit 5b14ff1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion assets/js/gallery.js
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ function animate() {
const a = new THREE.Vector3;
const b = new THREE.Vector3;

a.lerp(current_players[my_id].drawable.position, 0.4);
a.lerp(current_players[my_id].drawable.position, 1);
b.copy(camera_controls.boom.position);

const dir = a.clone().sub(b).normalize();
Expand Down

0 comments on commit 5b14ff1

Please sign in to comment.