日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 > 编程资源 > 编程问答 >内容正文

编程问答

如何修正导入模型的旋转? How do I fix the rotation of an imported model?

發布時間:2024/1/17 编程问答 50 豆豆
生活随笔 收集整理的這篇文章主要介紹了 如何修正导入模型的旋转? How do I fix the rotation of an imported model? 小編覺得挺不錯的,現在分享給大家,幫大家做個參考.

原地址:http://game.ceeger.com/Manual/HOWTO-FixZAxisIsUp.html

Some 3D art packages export their models so that the z-axis faces upward. Most of the standard scripts in Unity assume that the y-axis represents?up?in your 3D world. It is usually easier to fix the rotation in Unity than to modify the scripts to make things fit.

一些3D制作包導出的模型是Z軸向上的,在Unity中大多數標準腳本,假設Y軸在3D世界中表示向上的。在Unity中非常容易修正旋轉而不用修改腳本。

Your model with z-axis points upwards?你的模型是Z軸向上

If at all possible it is recommended that you fix the model in your 3D modelling application to have the y-axis face upwards before exporting.

如果有可能,建議你在導出前在3D建模軟件中修正模型以便使Y軸向上。

If this is not possible, you can fix it in Unity by adding an extra parent transform:

如果做不到這一點,你可以在Unity中添加額外的父變換來修正它。

  • Create an empty GameObject using the GameObject->Create Empty menu?
    使用GameObject->Create Empty菜單創建一個空的GameObject(游戲物體)
  • Position the new GameObject so that it is at the center of your mesh or whichever point you want your object to rotate around.?
    定位這個新的游戲對象,使他位于網格的中心或者想要物體圍繞旋轉的點上
  • Drag the mesh onto the empty GameObject?
    拖拽網格到這個空的游戲對象上
  • You have now made your mesh a Child of an empty GameObject with the correct orientation. Whenever writing scripts that make use of the y-axis as up, attach them to the Parent empty GameObject.

    現在你已經將網格作為一個具有正確方向的游戲對象的子物體了,寫腳本的時候使用Y軸向上,并將他們附加給這個空的父物體上。

    The model with an extra empty transform?帶有一個額外空變換的模型

    總結

    以上是生活随笔為你收集整理的如何修正导入模型的旋转? How do I fix the rotation of an imported model?的全部內容,希望文章能夠幫你解決所遇到的問題。

    如果覺得生活随笔網站內容還不錯,歡迎將生活随笔推薦給好友。