OrbitControls仍然在旋转模型原点,即使锅? [英] OrbitControls still rotate on model origin even when pan?

查看:1697
本文介绍了OrbitControls仍然在旋转模型原点,即使锅?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我会像解释我的问题:

非常感谢你,请你,如果你不明白我的问题(很抱歉,我的英语)。

Thank you very much, please ask if you don't understand my question (apologize for my english).

推荐答案

你有你的模型转换回原籍,处理旋转和平移回它的最后位置。所以你的旋转矩阵将包括2个转换

you have to translate your model back to origin, process the rotation, and translate it back to it's last position. so your rotation matrix will include 2 more transformations

rotation = TranslateBack * Rotate * TranslateForth

这篇关于OrbitControls仍然在旋转模型原点,即使锅?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆