Repel

If you apply the Repel behavior to an object, that object pushes away all other objects within the area of influence in the Canvas. The strength with which objects are pushed away can be increased or decreased, as can the distance repelled objects travel.

Canvas showing example of Repel behavior

You can also specify which objects are affected by this behavior, creating an effect where only specific objects are moved, while others remain still.

The Repel behavior is the opposite of the Attractor behavior, and is part of a group of simulation behaviors that create complex animated relationships between two or more objects.

Adjust this behavior using the controls in the Behaviors Inspector: