官术网_书友最值得收藏!

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 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.

主站蜘蛛池模板: 长海县| 绵竹市| 海原县| 宝清县| 涡阳县| 密山市| 和田市| 长兴县| 门源| 浪卡子县| 西昌市| 饶河县| 梓潼县| 平凉市| 山西省| 马鞍山市| 灵丘县| 通河县| 黄冈市| 旬邑县| 靖宇县| 临沂市| 靖州| 友谊县| 伊川县| 金门县| 西藏| 灯塔市| 玉山县| 新丰县| 县级市| 纳雍县| 洛南县| 麦盖提县| 哈密市| 郓城县| 克东县| 迭部县| 重庆市| 崇文区| 乌鲁木齐市|