Points and vectors

There is a structure in Unreal Engine named Vector, which has three variables of the float type: X, Y, and Z. These values can be used to represent a point (or location) in 3D space. They can also be used as a mathematical vector and represent movement.

Let's first look at an example of using Vector as a point. The following screenshot has two Actors. One Actor represents a character and the other represents a couch:

The next screenshot shows the character's Location. The Location variable of the Transform structure is of the Vector type, and one Unreal unit equals 1.0 cm by default:

We can represent the character's Location ...

Get Blueprints Visual Scripting for Unreal Engine - Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.