# Swaps

## Swaps

These tools have been created to edit a formation easily for example to avoid collisions.

### Swap target

`Swap target` swaps the targets between two drones.

{% embed url="<https://www.youtube.com/watch?v=ytAbK0SSLJQ>" %}

### Swap order

`Swap order` swaps the transition order between two drones.

{% embed url="<https://www.youtube.com/watch?v=o6bIQ24kuiM>" %}

### Auto swap

`Auto swap` will automatically apply `Swap target` on every collision of the selected drones.

You may need to use it several times.

If the number of collisions, stop reducing after several tries. You should try another direction or scale up the formation.

### Collision Reduction Strategies

If the swap tools do not resolve all collisions, the following strategies can be used to reduce the number of collisions:

1. Increase the `Min distance` between anchors
2. If you use staggered transition, increasing `Frame step` should reduce the number of collisions
3. Try using the swap tools again after each of these strategies.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://drotek.gitbook.io/lsc2/show-creation/formation/transition/swaps.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
