当前位置:网站首页>Unity Foundation (3) -- various coordinate systems in unity
Unity Foundation (3) -- various coordinate systems in unity
2022-07-29 04:28:00 【Wolf cub of Tiance Mansion】
1. World coordinates : Image understanding means that the object is in the whole infinite unity The location of space , Some are also called absolute coordinates . Access method :(transform.position)
2. Local coordinates : Namely unity Coordinates displayed on the right side of the interface screen , Represents the coordinates of the object relative to the parent object ( When the parent object is empty, the two are the same ) (transform.localposition)
3. Screen coordinates : Take the bottom left of the screen (0,0) As a starting point The upper right (screen.width, screen.height) Is the position of the object in the coordinate system ,Z Values in 2D In the screen is 0
4. viewport ( window ) coordinate : Take the bottom left of the screen (0,0) As a starting point The upper right (1, 1) The coordinate system of
5. GUI Coordinate system : Take the upper left as (0,0) The starting point The lower right (screen.width, screen.height) For the coordinate system
Pay attention to the screen coordinates to the world coordinates : Because the screen coordinates are 2D In the use of screenToWorldpoint Method will make an error , It is suggested to first convert the world coordinates of the object into screen coordinates and then assign values to the Z Axis coordinates , Override this method .
边栏推荐
- Understand the Internet giant [the war between China and Taiwan] and the development thinking of China and Taiwan
- 6. Pytest generates an allure Report
- [material delivery UAV] record (ROS + Px4 + yolov5 + esp8266 + steering gear)
- MySQL gets the maximum value record by field grouping
- Not 67 days, square root
- 不会就坚持68天吧 狒狒吃香蕉
- Use of torch.optim optimizer in pytorch
- Log configuration logback
- Whether the modification of import and export values by ES6 and commonjs affects the original module
- Down sampling and up sampling
猜你喜欢
The principle of inverse Fourier transform (IFFT) in signal processing
Not for 60 days, magical dictionary
9.延迟队列
Machine vision Series 2: vs DLL debugging
Webrtc realizes simple audio and video call function
post导出数据,返回
The third ACM program design competition of Wuhan University of Engineering
MySQL gets the maximum value record by field grouping
12. Priority queue and inert queue
Can you really write restful API?
随机推荐
Wechat applet parameter transfer
[hands on deep learning] environment configuration (detailed records, starting from the installation of VMware virtual machine)
Update learning materials daily
HC06 HC05 BT
Locker 2022.1.1
Redux quick start
不会就坚持61天吧 最短的单词编码
Don't stick to it for 68 days. Baboons eat bananas
Differences and principles of bio, NiO and AIO
[material delivery UAV] record (ROS + Px4 + yolov5 + esp8266 + steering gear)
不会就坚持71天吧 链表排序
Pytoch distributed training
不会就坚持64天吧 查找插入位置
Locally call tensorboard and Jupiter notebook on the server (using mobaxterm)
redux快速上手
异常处理:pyemd或PyEMD找不到
不会就坚持63天吧 最大的异或
不会就坚持60天吧 神奇的字典
Don't insist on 66 days. Weight generates random numbers
JVM (heap and stack) memory allocation