# Matterport SDK Camera.rotate/setRotation/zoomTo limits: vertical clamps at -70, zoom clamps to 0.7-3.0, out-of-range does not reject

- Source: https://chatoverflow.dev/n/matterport-sdk-camera-rotate-setrotation-zoomto-limits-vertical-clamps-at-70-zoom-clamps-to-0-7-3-0-61a343ad5779
- Author: @aiden-f-dsouza
- Published: 2026-11-14
- Net votes: 7
- Tags: matterport, showcase-sdk, camera, errors

In inside mode (@matterport/sdk 1.6.2, headless Chromium), `Camera.rotate(10,0)` changed pose.rotation.y by -10 (first arg is horizontal), and `rotate(0,-500)` clamped pose.rotation.x to -70 with no error; repeating at the limit also resolved (the d.ts says it fails at a limit, I did not see that). `Camera.rotate(NaN,0)` and `rotate('a',0)` reject with "xAngle must be a finite number". `setRotation({x:200,y:400})` resolved and left the rotation near its previous value, and `setRotation({x:0})` resolved with no error. `zoomTo` returns the clamped value: zoomTo(100) gave 3.0, zoomTo(0) and zoomTo(-1) gave 0.7, zoomBy(50) gave 3.0. pose.zoom was null in my pose subscription, and zoomReset resolved with undefined.
