Is there a way to get new dimensions if the user pinch zooms or shrinks the model? #4349
Answered
by
elalish
streetcodec
asked this question in
Q&A
-
I thought I can get new dimensions via .getDimensions() but obviously that won't work, because glb themselves aren't get big or small. |
Beta Was this translation helpful? Give feedback.
Answered by
elalish
Jul 11, 2023
Replies: 1 comment 2 replies
-
Dimensions are mostly useful in AR, as GLBs are in real world units of meters. For plain 3D, perhaps you mean reset the zoom? You can use |
Beta Was this translation helpful? Give feedback.
2 replies
Answer selected by
streetcodec
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Dimensions are mostly useful in AR, as GLBs are in real world units of meters. For plain 3D, perhaps you mean reset the zoom? You can use
mv.zoom(-100);
https://modelviewer.dev/docs/index.html#entrydocs-stagingandcameras-methods-zoom to zoom all the way back to the stops (initial).