- Godot Engine Game Development Projects
- Chris Bradfield
- 185字
- 2021-06-18 18:51:25
Vectors and 2D coordinate systems
Note: This section is a very brief overview of 2D coordinate systems and does not delve very deeply into vector math. It is intended as a high-level overview of how such topics apply to game development in Godot. Vector math is an essential tool in game development, so if you need a broader understanding of the topic, see Khan Academy's Linear Algebra series (https://www.khanacademy.org/math/linear-algebra).
When working in 2D, you'll be using Cartesian coordinates to identify locations in space. A particular position in 2D space is written as a pair of values, such as (4,3), representing the position along the x and y axes, respectively. Any position in the 2D plane can be described in this way.
In 2D space, Godot follows the common computer graphics practice of orienting the x axis to the right, and the y axis down:

If you're new to computer graphics or game development, it might seem odd that the positive y axis points downwards instead of upwards, as you likely learned in math class. However, this orientation is very common in computer graphics applications.
- 32位嵌入式系統(tǒng)與SoC設(shè)計導(dǎo)論
- Oracle SOA Governance 11g Implementation
- 西門子PLC與InTouch綜合應(yīng)用
- 機器學(xué)習(xí)與大數(shù)據(jù)技術(shù)
- 大數(shù)據(jù)改變世界
- Zabbix Network Monitoring(Second Edition)
- OpenStack Cloud Computing Cookbook(Second Edition)
- Dreamweaver CS6精彩網(wǎng)頁制作與網(wǎng)站建設(shè)
- FPGA/CPLD應(yīng)用技術(shù)(Verilog語言版)
- Xilinx FPGA高級設(shè)計及應(yīng)用
- 機器人制作入門(第4版)
- 實戰(zhàn)Windows Azure
- 項目實踐精解:C#核心技術(shù)應(yīng)用開發(fā)
- Microsoft System Center Data Protection Manager Cookbook
- 特征工程入門與實踐