# Getting set up

### Download the package

First you can first download and import the package on the asset store here:

{% embed url="<https://assetstore.unity.com/packages/slug/247881>" %}

### Try it out!

#### :warning: Important :warning: Set up the physics layers

If you don't set up the layers then the effects won't work.&#x20;

In the inspector, create two physical layers. One for the player and one for the projectile.\
You can just click any GO in your scene and add them from there: ![](https://2791585758-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FE8bOcbAuH0ZMX3MgiT9p%2Fuploads%2FhSuNzg0zIQJEj6NIrGb6%2Fimage.png?alt=media\&token=adac6786-94ea-4396-b128-85732a51300c)

Then in the physics settings, set the new layers as follow:\
![](https://2791585758-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FE8bOcbAuH0ZMX3MgiT9p%2Fuploads%2FLiZ33DQS9VOSeyTnYlGR%2Fimage.png?alt=media\&token=6c8ee9b3-ee61-4def-ae50-b09f91653b29)

Make sure you assign the Player layer to the player GO in the scene and its children.

<figure><img src="https://2791585758-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FE8bOcbAuH0ZMX3MgiT9p%2Fuploads%2F35hKKEMbHIfj6SCxqBwj%2Fimage.png?alt=media&#x26;token=210465a9-acf8-4ac0-8676-35bfa56a1e65" alt=""><figcaption></figcaption></figure>

Finally, assign the projectile layer to the object spawner prefabs in this folder, and also to the prefab located in the scene.

![](https://2791585758-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FE8bOcbAuH0ZMX3MgiT9p%2Fuploads%2Fnm2vyVLB3nddIQgeaImB%2Fimage.png?alt=media\&token=0c23745c-cb38-4c70-8bd0-bbe80e6d4d77)

#### Open the scene

Launch the scene CollisionBasedEffects.unity located in:

*ProcedurallyPropagatingEffects/Scenes/CollisionBasedEffects.unity*

#### Controls

* Move around with WASD&#x20;
* Look around with the mouse
* Fire a projectile that will spawn an effect with Left-Click
* Change effect by pressing 1, 2 or 3 (not on the numpad)

### Alternative

From version 1.0.1 and above, you can also open the scene *ProcedurallyPropagatingEffects/Scenes/ClickBasedEffects.unity* and enter play mode.\
There you can move around the camera like you would in the scene window, and left click to spawn some ants.

<br>

You can customize the effects by modifying the prefabs located in:

*ProcedurallyPropagatingEffects/Prefabs/ObjectSpawner*

To know more about how to modify them, visit:

{% content-ref url="reference" %}
[reference](https://ffactory-1.gitbook.io/procedurally-propagating-paths/fundamentals/reference)
{% endcontent-ref %}
