Reset model position when model changes #3748
Answered
by
elalish
furkandindar
asked this question in
Q&A
-
Hello, I want to reset model position when a new model loads. Currently, if you rotate a model and then load a new model, newly loaded model is also rotated. You can check; https://joyous-plain-offer.glitch.me/ or simply open modelviewer editor load an astronaut model, rotate it around and load a horse model. Horse model is going to load with the astronaut model's rotation. Is there any way to reset this so newly loaded model renders properly? |
Beta Was this translation helpful? Give feedback.
Answered by
elalish
Aug 29, 2022
Replies: 1 comment 5 replies
-
Just call |
Beta Was this translation helpful? Give feedback.
5 replies
Answer selected by
furkandindar
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Just call
mv.cameraOrbit = "auto auto auto"
in your "load" listener.