Transform.TransformDirection
来源:互联网 发布:鬼吹灯 盗墓笔记 知乎 编辑:程序博客网 时间:2024/06/04 18:51
transform.forward以自身坐标系为基准,向前
TransformDirection函数接受一个世界坐标下的向前Vector3.forward参数,转换成自身坐标系的向前
实例说明:
m_cube是一个沿着X轴旋转了90度的方块。
方块沿着自身的z轴移动
m_cube.transform.Translate(Vector3.forward)
方块沿着世界的z轴移动
m_cube.transform.Translate(m_cube.transform.TransformDirection(Vector3.forward) );
0 0
- Transform.TransformDirection
- Transform.TransformDirection
- Unity3D-Transform.TransformDirection
- Transform.TransformDirection 变换方向
- 【Unity】 Transform.TransformDirection作用
- TransformDirection
- TransformDirection
- TransformPoint和TransformDirection函数
- 简述unity之TransformDirection
- TransformPoint和TransformDirection函数
- transform
- Transform
- transform
- transform
- transform
- transform
- Transform
- transform
- My97DatePicker日期插件使用说明
- 百度、谷歌高德等网络地图经纬度偏差纠正以及相关坐标系问题
- codeforces 682C Alyona and the Tree(DFS)
- HDU 3791 比较两棵二叉搜索树是否相同(建树,比较)
- zynq学习02 新建一个Helloworld工程
- Transform.TransformDirection
- 正则表达式(RegExp)的方法和字符串的模式匹配方法
- Linux的文件类型和权限
- Java在cmd下编译eclipse代码
- contentProvider
- 【剑指offer】 用两个栈实现队列 -Java
- 【LeetCode-101】 Symmetric Tree(C++)
- Apache Phoenix的Join操作和优化
- android 代码混淆与反编译