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

Vectors

You can also think of the position (4, 3) as an offset from the (0, 0) point, or origin. Imagine an arrow pointing from the origin to the point:

This arrow is a vector. It represents a great deal of useful information including the point's location, (4, 3), its length, m, and its angle from the x-axis, θ. Altogether, this is a position vector, in other words, it describes a position in space. Vectors can also represent movement, acceleration, or any other quantity that has an x and a y component.

In Godot, vectors (Vector2 for 2D or Vector3 for 3D) are widely used, and you'll use them in the course of building the projects in this book.

主站蜘蛛池模板: 饶平县| 松阳县| 新丰县| 确山县| 永州市| 连江县| 延边| 无极县| 海阳市| 巫山县| 波密县| 田东县| 涟源市| 罗平县| 甘德县| 鄱阳县| 西吉县| 苍山县| 喀喇| 三门峡市| 临江市| 大竹县| 九龙城区| 堆龙德庆县| 碌曲县| 招远市| 嵊州市| 胶南市| 密山市| 沁阳市| 彝良县| 海门市| 方山县| 南溪县| 临海市| 大洼县| 定日县| 四子王旗| 汪清县| 上杭县| 开鲁县|