当前位置:网站首页>unity3d中的旋转
unity3d中的旋转
2022-07-17 12:38:00 【tt丫】
入门小菜鸟,希望像做笔记记录自己学的东西,也希望能帮助到同样入门的人,更希望大佬们帮忙纠错啦~侵权立删。
目录
1、this.transform.rotation(属性变量)
3、this.transform.localEulerAngles
一、背景知识
详见欧拉角,轴角,四元数与旋转矩阵详解_tt丫的博客-CSDN博客
二、unity3d中一些常用的旋转角表示方法及其含义
1、this.transform.rotation(属性变量)
用于存储当前对象在世界空间中的旋转,是四元数(不是度数,是一些sin,cos的组合)。
transform.rotation的旋转角度不固定,声明后可以再赋值。
2、this.transform.eulerAngles
对象相对世界坐标的欧拉角
3、this.transform.localEulerAngles
对象相对于父对象的欧拉角
4、Quaternion.identity(值类型)
无旋转——即等效为Quaternion(0,0,0,0)
注:只读:Quaternion.identity的旋转角度固定,声明后不可再赋值
5、Quaternion.eulerAngles
将欧拉角转化为四元数格式存起来
欢迎大家在评论区批评指正,谢谢~
边栏推荐
- How to realize the association between interfaces in JMeter?
- 笔记本键盘失灵解决办法
- HCIA static comprehensive experiment report 7.10
- 旋转矩阵(Rotate Matrix)的性质分析(转发)
- SAP ECC 和 S4HANA Material 物料库存管理的模型比较
- B. AccurateLee【双指针】【substr函数】
- The use and Simulation of stack and queue in STL
- 2022年全国最新消防设施操作员(中级消防设施操作员)模拟试题及答案
- Attachment handling of SAP Fiori
- 2022 Shaanxi secondary vocational group "Cyberspace Security" - packet analysis
猜你喜欢

知其然,而知其所以然,JS 对象创建与继承

NAT技术及NAT ALG

2022 windows penetration test of "Cyberspace Security" of Hunan secondary vocational group (ultra detailed)

NJCTF 2017messager

【PostgreSQL 】PostgreSQL 15对distinct的优化

HCIA RIP实验 7.11

Figure an introduction to the interpretable method of neural network and a code example of gnnexplainer interpreting prediction

opencv 画黑色矩形,并写上序号

Detailed explanation of C language custom types

STL中stack和queue的使用以及模拟实现
随机推荐
C语言自定义类型详解
Hcip day 1 7.15
R language uses the ordinal of epidisplay package or. The display function obtains the summary statistical information of the ordered logistic regression model (the odds ratio and its confidence inter
CPU负载与CPU使用率之区别
圆桌实录:炉边对话——如何在 Web3 实现创新
Secondary vocational network security - (2022 network security NC batch connection script) free script oh~~~
R语言使用R原生函数进行数据聚合统计(Aggregating transforms)计算滑动窗口统计值(Window Statistics)、计算滑动分组最小值(min)并合并生成的统计数据到原数据集
The use and Simulation of stack and queue in STL
创建虚拟机第一章(vmvare虚拟机)
看一看这丑恶嘴脸 | MathWorks Account Unavailable - Technical Issue
完全背包问题代码模板
【牛客刷题】/*C语言实现字符串左旋*/
顺序表的基本建立,以及增删改查的相关操作(c语言描述之顺序表)
机械臂速成小指南(零点五):机械臂相关资源
yarn(cdh)中的虚拟cpu和内存
Date -- machine test topic for postgraduate entrance examination of Guizhou University
Bazel use tutorial to
高效理解 FreeSql WhereDynamicFilter,深入了解设计初衷[.NET ORM]
Detailed explanation of C language custom types
Crud code practice of user management based on koa2 + MySQL