Hi, I am new at threejs, I want to built a city scene that using a Ortographic Camera, so it will look like an isometric view. So far what I already achieve is:
- the camera view already in isometric
- add a button to control camera using gsap animation to view a different portion of the city, I only change the x and y position of the camera
My question is:
-
how can I move the camera freely with using click and drag function? The one I aim is like https://www.bruno-simon.com/ ,as you can see in that websitethe camera can be control by click and drag as well, is there any javascript library I can use to achieve it as well?
-
how can i limit the click and drag (e.g to the edge of my .glb)?
Thanks