# Yaw Control

There are multiple payload options (such as Pyro) that benefit from the ability to point drones in specific directions. The design studio has support for automating drone yaw based on shape information such as normal or tangent vectors.

## Enabling Yaw Control

To activate yaw control, go to the launchpad inspector and make sure that "Use Default Agent Config" is unchecked. Set "Payload Mount" to "Yaw".

<figure><img src="https://1654204364-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FakGR2bVCZLTNoe2hkqeR%2Fuploads%2FE0p1UfEVFPlvi4LUfe3R%2FYaw_Target_Enable.png?alt=media&#x26;token=771cf058-61e8-4a7f-96f6-7c6a3ea3afd2" alt="" width="331"><figcaption></figcaption></figure>

## Payload Target Events

To create yaw targets, a tracked shape must contain a ***Geometry Payload Layer*** with ***Payload Target Events***. ***Geometry Payload Layers*** can be placed inside of a ***Geometry Light Mixer*** component.&#x20;

<figure><img src="https://1654204364-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FakGR2bVCZLTNoe2hkqeR%2Fuploads%2F9SXeNqAw1rwENrn6h1tc%2FScreenshot%202024-09-13%20075911.png?alt=media&#x26;token=aded2ee5-2b42-4354-8300-1475189d8b70" alt="" width="563"><figcaption></figcaption></figure>

There are multiple event types that provide flexible ways of turning drones.

* World Target
  * Face all drones toward the center of a scene object. This object can be animated to dynamically shift drones as the scene object moves
* World Vector
  * Face all drones in a specific direction
* Local Rotation
  * Face all drones with an optional offset relative to the tangent vector of the current slot
* Dynamic Rotation
  * Animatable version of the local rotation effect with options for looping and phase offsets

<figure><img src="https://1654204364-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FakGR2bVCZLTNoe2hkqeR%2Fuploads%2FR7UchwEMN76q10KAb4EX%2FGlobal_Target_Test.gif?alt=media&#x26;token=2986a3f8-23e1-44cf-b4a8-4c2827cfb18e" alt=""><figcaption><p>An example of drones turning to face a world target in the scene</p></figcaption></figure>

## Transitions

All Payload Target events also handle transitions by spending the first x% of the event easing into the new rotation. The percentage as well as the easing method is configurable.

<figure><img src="https://1654204364-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FakGR2bVCZLTNoe2hkqeR%2Fuploads%2F6gum8XrTxI391chndLQY%2Fimage.png?alt=media&#x26;token=cf0cfcba-5f23-46fc-a973-18af30c6175a" alt="" width="278"><figcaption></figcaption></figure>
