# Intro
Yodare-System can make a line between two avatars.

Its very easy to setup, and you just to install [Avatars-3.0-Manager](https://github.com/VRLabs/Avatars-3.0-Manager) before the setups.

The example scene used [Vketchan 1](https://www.store.vket.com/ec/items/656/detail/) for example. If you need to reference this example scene, please download and import Vketchan 1.

Yodare-System is divided into two parts. `YodareObjectPlayer_A` & `YodareObjectPlayer_B`

`YodareObjectPlayer_A` should put in one avatar and `YodareObjectPlayer_B` should put in another.

`Player_B`'s setting up is easier, we start with `Player_B`'s setting up.

# `Player_B`'s setting up
1. Put `YodareObjectPlayer_B` into Avatar.

- ![tutorial](tutorial-1.jpg)

2. Right click `YodareObjectPlayer_B` and click `Unpack Prefab`.

3. Set `YodareParent`'s position to where you want to make a line. Here's an example of making a line from mouth.

- ![tutorial](tutorial-2.jpg)
- Make `YodareParent` under the `Head`, then move it to the position of the mouth.

4. Done.

# `Player_A`'s setting up
1. Put `YodareObjectPlayer_A` into Avatar.

- ![tutorial](tutorial-3.jpg)

2. Right click `YodareObjectPlayer_A` and click `Unpack Prefab`.

3. Set `YodareParent`'s position to where you want to make a line. Here's an example of making a line from mouth.

- ![tutorial](tutorial-4.jpg)

4. Use `Avatars-3.0-Manager`. Merge `-MERGE_THIS_FX` with avatar's FX layer.(You may need to choose the `Write-Defaults`. If you dont know what is it, you can choose Off).

- ![tutorial](tutorial-5.jpg)

5. Done

# Notice
* If you want to test within Unity Editor, you can use [Av3Emulator](https://github.com/lyuma/Av3Emulator)

* Please set a number you like to the key property of **all** materials, YodareSystem will only make lines with objects with the same key.

- ![tutorial](tutorial-E1.jpg)

* You can edit collider's range by editing `Radius` of `Teller_A`'s `VRC Contact Recevier` in `YodareObjectPlayer_A` and `Radius` of `BPos` in `YodareObjectPlayer_B`.

* You can change duration, thickness, bent of the line by editing animation file `YodareAni.anim`.
