如何修正导入模型的旋转? 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 带有一个额外空变换的模型
最新文章
- 大话PHP缓存头
- IIS 内部运行机制
- Primace 5.0软件与KEIL单片机软件联合在线仿真步骤
- centos7扩展磁盘空间
- iOS 退出应用程序
- ACdreamoj(1105)模拟题
- php 常用的调试方法
- rabbitmq 启动报错
- ubuntu 下php + nginx
- Hadoop| YARN| 计数器| 压缩| 调优
- VS2017 docker部署工具的使用
- python爬虫获取图片
- MySql cmd下的学习笔记 —— 有关表的操作(对表的增删改查)
- HAProxy详解(一):HAProxy介绍【转】
- linux操作系统中oracle数据库的密码过期问题解决
- [ZJOI2012]数列
- java.lang.Exception: No runnable methods 解决方案
- 一个列转行SQL示例(wm_concat函数和replace函数合用)
- day15(模块引用笔记)
- [开发笔记]-初学WPF之自学笔记
热门文章
- Oracle存储过程学习备忘
- Tostring记录,方便自己查看
- [转]pro*c/c++编译错误 ” error: sqlca.h: No such file or directory “ 的解决办法
- Linux 常见的进程调度算法
- oracle group 语句探究(笔记)
- .NET Async/Await 最佳实践
- ";奇葩家园“之 asyncTask 与 url 下载篇
- 分享C#原生ID(流水号)生成功能实现
- 浅析Objective-C字面量
- SQL Server数据库学习笔记-外键