You can track a face by selecting the “Face” Space on the RootNode of your project, or by adding the Face Position component to a parent node of the objects you wish to track
It is recommended to use the Face Position components as this will allow for more flexibility in your project. You will be able to have objects in face and camera space.
To use the Face Position component, ensure that the RootNode is set to “Camera Space”.
In the hierarchy, create a parent node to hold all of the objects that will track the face, we recommend naming it clearly. We will call it Face1.
With the Face1 node selected, in the Node Properties, click Add Component -> Face Position.
Ignore Translation XYZ
Ignore face translation on the X, Y, or Z-axis.
Ignore Rotations XYZ
Ignore face rotation around the X, Y, or Z-axis.
Value of the maximum absolute value allowed for X translation. Translations over the threshold are ignored.
Value of the maximum absolute value allowed for Y translation. Translations over the threshold are ignored.
Value of the maximum absolute value allowed for Z translation. Translations over the threshold are ignored
The tracked face. You can select the AUTO option which will default to the first face or the value set from the SDK, or you can manually select a face to track
Here we have manually selected Face1, are not ignoring translations or rotations, and are not using thresholds.
To track a second face within the same effect, duplicate the desired nodes, and set up the Face Position component to track the second face.
Repeat the steps for a third and fourth face if needed.
NOTE: This behavior can also be achieved by using the Auto face and setting the face ID from the SDK at runtime