Hook for smooth camera viewpoint transitions.
Provides a managed way to animate the camera from one position/orientation to another over a specified duration with easing.
const { startTransition } = useCameraTransition();const handleClick = () => { startTransition({ from: camera.position.clone(), to: new THREE.Vector3(10, 5, 10), duration: 2.0 });}; Copy
const { startTransition } = useCameraTransition();const handleClick = () => { startTransition({ from: camera.position.clone(), to: new THREE.Vector3(10, 5, 10), duration: 2.0 });};
Hook for smooth camera viewpoint transitions.
Provides a managed way to animate the camera from one position/orientation to another over a specified duration with easing.