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

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.

主站蜘蛛池模板: 视频| 类乌齐县| 芜湖市| 合山市| 无极县| 汪清县| 上饶县| 阿坝县| 思南县| 嘉义市| 舒兰市| 乌兰县| 于都县| 文登市| 类乌齐县| 清流县| 大庆市| 武胜县| 抚州市| 拉孜县| 太原市| 历史| 永安市| 安阳县| 东台市| 衡东县| 象州县| 弥勒县| 连云港市| 扎赉特旗| 津南区| 娄烦县| 资中县| 胶州市| 五华县| 增城市| 永修县| 龙岩市| 临汾市| 井研县| 兴山县|