当前位置:网站首页>Rotation in unity3d
Rotation in unity3d
2022-07-19 11:00:00 【TT ya】
Beginner little rookie , I hope it's like taking notes and recording what I've learned , Also hope to help the same entry-level people , I hope the big guys can help correct it ~ Tort made delete .
Catalog
Two 、unity3d Some commonly used expressions of rotation angle and their meanings in
1、this.transform.rotation( Attribute variables )
3、this.transform.localEulerAngles
4、Quaternion.identity( Value type )
One 、 Background knowledge
See Euler Angle , Axis angle , Quaternion and rotation matrix _tt Ya's blog -CSDN Blog
Two 、unity3d Some commonly used expressions of rotation angle and their meanings in
1、this.transform.rotation( Attribute variables )
Used to store the rotation of the current object in world space , It's a quaternion ( It's not degrees , It's some sin,cos The combination of ).
transform.rotation The rotation angle of is not fixed , After declaration, you can assign a value .
2、this.transform.eulerAngles
Euler angle of the object relative to the world coordinates
3、this.transform.localEulerAngles
Euler angle of the object relative to the parent object
4、Quaternion.identity( Value type )
No rotation —— It is equivalent to Quaternion(0,0,0,0)
notes : read-only :Quaternion.identity The rotation angle is fixed , No assignment is allowed after declaration
5、Quaternion.eulerAngles
Convert Euler angle into quaternion format and save
You are welcome to criticize and correct in the comment area , thank you ~
边栏推荐
- 6G中的卫星通信高效天基计算技术
- 最大半连通子图(tarjan缩点+拓扑排序+dp最长链)
- 数据库面基知识汇总后
- Establishment of redis cluster, one master, two slave and three Sentinels
- Takeout ordering system based on wechat applet
- [leetcode weekly replay] 302 weekly 20220717
- Satellite network capacity improvement method based on network coding
- IP SAN has an independent file system. After the application server accesses the IP SAN through the network sharing protocol, it can read and write the files in the file system
- 人大、微软等提出InclusiveFL:异构设备上的包容性联邦学习
- MySQL query error
猜你喜欢

Common collection properties

手机键盘(模拟题)

Avi Deployment Guide (2): overview of AVI architecture

LeetCode 2319. 判断矩阵是否是一个 X 矩阵

How to build dashboard and knowledge base in double chain note taking software? Take the embedded widget library notionpet as an example

vulnhub inclusiveness: 1

LeetCode 2325. 解密消息(map)

火箭大机动运动欧拉角解算的探讨

使用tesseract.js-offline识别图片文字记录

一个报错, Uncaught TypeError: ModalFactory is not a constructor
随机推荐
高数_第1章空间解析几何与向量代数__点到平面的距离
vulnhub inclusiveness: 1
Pytoch and weight decay (L2 norm)
Goldfish rhca memoirs: cl210 describes the openstack control plane -- identify the overcloud control platform service + chapter experiment
(二)使用MySQL
可定义的6G安全架构
"Baidu side" angrily sprayed the interviewer! Isn't it that the tree time increases by a line number?
[PostgreSQL] PostgreSQL 15 optimizes distinct
Mobile keyboard (simulation question)
Journal日志与oplog日志的区别
Opencv programming: opencv3 X trains its own classifier
[in vivado middle note ILA IP core]
Takeout ordering system based on wechat applet
Thread pool principle
Svn learning
vulnhub inclusiveness: 1
Tencent cloud server uses image to deploy WordPress personal website!
Beego framework realizes file upload + seven cattle cloud storage
Maximal semi connected subgraph (tarjan contraction + topological ordering + DP longest chain)
37. flex布局