Global Vector Fields (Tutorial)


Overview

Global Vector Fields are set up in the level as placeable actors. Any GPU sprite particle system that uses the Global Vector Fields module can then be affected by these vector fields. These differ from Local Vector Fields in that a local field is inherent to a particle system. Global vector fields exist completely outside of a particle system and must have eligible particle systems placed within them in order to have an effect.

Setup

Using a Global Vector Field first requires that you have a vector field asset that you can place via a Vector Field Volume actor.

Vector Field Volumes are not volumes in the traditional sense. They are created from the Class Viewer, not via a volume!

Vector Field Volume Actor

Once you have a Vector Field Volume actor placed in your level, you need to associate a vector field with it. First, select your vector field asset in the Content Browser. Then, select your Vector Field Volume actor in the level. In the Details panel, look under the Vector Field Volume group and click the Edit button.

VFV Details 1 GVF.png


This will bring up the properties for this instance of the actor. Near the top, you will notice the Vector Field property. Add the selected vector field from the Content Browser to it by clicking the arrow button.

VFV Details 2 GVF.png


You will probably also need to resize the vector field using the local scale properties, near the bottom of the window:

ScaleSettings GVF.png


You may now place the vector field in the level however you wish.

VFScaled GVF.png


Global Vector Field Particle System

The remainder of setting up the effect is fairly straightforward. Simply create a GPU Sprites particle system that uses a Global Vector Fields module.

In this example, we have a GPU sprite particle system that emits a series of long-lived slow moving particles. By moving a global vector field into these particles, we can influence their motion.

GlobalVectorFieldsSystem GVF.png


Now simply place the particle system within the volume of the Vector Field Volume actor. In this image, the bar of slow-moving particles is being disrupted as the Vector Field Volume is moved through them.

GameModeVFV GVF.png