{"repo":"yomotsu/camera-controls","free":true,"listed":false,"github":"https://github.com/yomotsu/camera-controls","clone":"git clone https://github.com/yomotsu/camera-controls.git","description":"A camera control for three.js, similar to THREE.OrbitControls yet supports smooth transitions and more features.","language":"TypeScript","stars":2424,"topics":["threejs","camera","orbitcontrols"],"license":"MIT","category":"game-templates","readme_excerpt":"camera-controls A camera control for three.js, similar to THREE.OrbitControls yet supports smooth transitions and more features. documentation Examples camera move default user input (Configurable) --- --- Orbit rotation left mouse drag / touch: one-finger move Dolly middle mouse drag, or mousewheel / touch: two-finger pinch-in or out Truck (Pan) right mouse drag / touch: two-finger move or three-finger move - basic - fit-and-padding - fit-to-rect - fit-to-bounding-sphere - infinity dolly - boundary - focal offset - click to set orbit point - look in the point direction - viewport within the canvas - multiple camera-controls and viewport - z-up camera - orthographic - event attach / detach - user input config - mouse drag with modifier keys - combined gestures - keyboard events - rest and sleep events - changing the cursor - collision - collision (custom) - first-person - third-person (with meshwalk) - pointer lock - auto rotate - view offset translate - camera shake effect - rotate with time duration and easing (with gsap) - path animation (with gsap) - complex transitions with await - set view padding - WebWorker (OffscreenCanvas) - outside of iframe dragging - in react-three-fiber (simplest) - in react-three-fiber (drei official) (see doc) Usage (The below code is for three.js users. If you use react-three-fiber (aka R3F), r3f-ready camera-controls is available on @react-three/drei Important! You must install three.js before using camera-controls. Not doing so will lead to","default_branch":null,"files":null,"tree":[],"storefront":"/r/yomotsu","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/yomotsu/camera-controls/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}