Skip to content

Commit

Permalink
Increase depth of camera target to handle extremely large maps
Browse files Browse the repository at this point in the history
Signed-off-by: Aaron Chong <[email protected]>
  • Loading branch information
aaronchongth committed Aug 8, 2024
1 parent 690a163 commit 6eb2df9
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ export const CameraControl: React.FC<CameraControlProps> = ({ zoom }) => {

useEffect(() => {
const controls = new OrbitControls(camera, gl.domElement);
controls.target = new Vector3(0, 0, -1000);
controls.target = new Vector3(0, 0, -10000);
controls.enableRotate = false;
controls.enableDamping = false;
controls.enableZoom = true;
Expand Down

0 comments on commit 6eb2df9

Please sign in to comment.