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

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.

主站蜘蛛池模板: 桃江县| 宁化县| 衡阳县| 措美县| 河间市| 弥勒县| 赣州市| 商都县| 壶关县| 涟源市| 平定县| 怀远县| 绥江县| 根河市| 秀山| 河源市| 都安| 吉安市| 玉树县| 富阳市| 红安县| 东安县| 珠海市| 榆林市| 永丰县| 乐安县| 蒙山县| 桂林市| 理塘县| 永登县| 太白县| 丹寨县| 大英县| 海丰县| 沭阳县| 杭锦后旗| 台湾省| 囊谦县| 宁陵县| 汉中市| 定南县|