模型预览
This commit is contained in:
@@ -207,9 +207,8 @@ namespace NBF
|
||||
{
|
||||
if (_rotating != Vector3.zero && this.modelRoot != null)
|
||||
{
|
||||
Vector3 localRotation = modelRoot.localRotation.eulerAngles;
|
||||
localRotation += _rotating;
|
||||
modelRoot.localRotation = Quaternion.Euler(localRotation);
|
||||
// 使用 Quaternion 来避免欧拉角带来的问题
|
||||
modelRoot.Rotate(_rotating, Space.World);
|
||||
}
|
||||
|
||||
SetLayer(_root.gameObject, RENDER_LAYER);
|
||||
|
||||
Reference in New Issue
Block a user