原地址: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中添加额外的父变换来修正它。

  1. Create an empty GameObject using the GameObject->Create Empty menu 
    使用GameObject->Create Empty菜单创建一个空的GameObject(游戏物体)
  2. Position the new GameObject so that it is at the center of your mesh or whichever point you want your object to rotate around. 
    定位这个新的游戏对象,使他位于网格的中心或者想要物体围绕旋转的点上
  3. 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 带有一个额外空变换的模型

最新文章

  1. 大话PHP缓存头
  2. IIS 内部运行机制
  3. Primace 5.0软件与KEIL单片机软件联合在线仿真步骤
  4. centos7扩展磁盘空间
  5. iOS 退出应用程序
  6. ACdreamoj(1105)模拟题
  7. php 常用的调试方法
  8. rabbitmq 启动报错
  9. ubuntu 下php + nginx
  10. Hadoop| YARN| 计数器| 压缩| 调优
  11. VS2017 docker部署工具的使用
  12. python爬虫获取图片
  13. MySql cmd下的学习笔记 —— 有关表的操作(对表的增删改查)
  14. HAProxy详解(一):HAProxy介绍【转】
  15. linux操作系统中oracle数据库的密码过期问题解决
  16. [ZJOI2012]数列
  17. java.lang.Exception: No runnable methods 解决方案
  18. 一个列转行SQL示例(wm_concat函数和replace函数合用)
  19. day15(模块引用笔记)
  20. [开发笔记]-初学WPF之自学笔记

热门文章

  1. Oracle存储过程学习备忘
  2. Tostring记录,方便自己查看
  3. [转]pro*c/c++编译错误 ” error: sqlca.h: No such file or directory “ 的解决办法
  4. Linux 常见的进程调度算法
  5. oracle group 语句探究(笔记)
  6. .NET Async/Await 最佳实践
  7. "奇葩家园“之 asyncTask 与 url 下载篇
  8. 分享C#原生ID(流水号)生成功能实现
  9. 浅析Objective-C字面量
  10. SQL Server数据库学习笔记-外键