Vector Transformation
Before you jump into the next exercise, it is important that you learn about Vector Transformation and, more importantly, what the Transform Location
function does. When it comes to an actor’s location, there are two ways of thinking of its position: in terms of world space and local space. An actor’s position in world space is its location relative to the world itself; in more simple terms, this is the location where you place the actor in the level. An actor’s local position is its location relative to either itself or a parent actor.
Let’s consider the BP_AIPoints actor as an example of what world space and local space are. Each of the locations of the Points array is a local-space vector because they are positions relative to the world-space position of the BP_AIPoints actor itself. The following screenshot shows the list of vectors in the Points array, as shown in the previous exercise. These values are positions relative to...