Skip to content

Commit

Permalink
Tweak camera target
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 c7ec958 commit 1de49b8
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 1de49b8

Please sign in to comment.