Points and vectors
There is a structure in Unreal Engine named Vector, which has three variables of the float type: X, Y, and Z. Same as the concept of a vector in mathematics, this Vector can be used to represent a point (location) in 3D space or velocity (speed in a specified direction).
Let's first look at an example of using Vector as a point in 3D space. The following screenshot has two actors. One actor represents a character and the other represents a couch.
The following screenshot shows the character's location. The Location variable of the Transform structure is of the Vector type (X, Y, and Z), and one Unreal unit equals 1.0
cm by default.
We can represent the character's location simply as (50.0, 0.0, 20.0). The couch's location is (450.0, 0.0, 20.0), which can be seen in the following screenshot: