Go back to documentation on product:

Zibra Effects

Zibra Liquid

Colliders are manipulators that collide with liquid. They apply force to the liquid and can optionally receive force back from the liquid.

Creating Analytic Colliders GameObjects

  1. Right click in the Hierarchy window, and select “Zibra Liquid -> Analytic Collider -> Your preferred shape”

    That creates a new GameObject, with Liquid Collider and Analytic SDF components and chosen shape pre-configured.

    Please note, if you right clicked specifically on your Zibra Liquid object, you can skip step 2

    https://lh7-us.googleusercontent.com/db_WlXAbyv7WyhxA7tgVWQnx73z2w7PWIDZFZ9J-ynHcwxD718aj0jZX1oG8lu2zH9sVFTrmWMxprsjaemBLki94HI2jksfDJlkMFBI1zwjH2ySEXfg9GGKY6JQlBr2BF-PIkH4VCUhT_zWJAp6PReY

  2. Open Inspector for your Liquid object, and press the Add button in the list of colliders to add. You can also use the Add all button to add all colliders to your liquid instance.

    You may also need to expand the list of colliders to add by pressing the “Add Collider” button first.

    https://lh7-us.googleusercontent.com/fMwPRvAL-8rN_U_YZXDKYMpN5CatHgggkq-CVtdZaB3_GuUzh8g9RdYvgTB0Qc4ZJ48Wd63DE0QhlEhKzxxT11ptfMvcD5II9J44lHE8NMDqSut3hnlKMXJdeM2wPOAjGVTqq2KDad4vSPtrAkYm9kQ

After that your collider is ready to be used. You can set its transform in the editor, or move it at runtime.

Adding Colliders to existing GameObjects

  1. Open inspector for your selected GameObject. Press Add Component and select “Zibra Liquid -> Zibra Liquid Collider”.

    https://lh7-us.googleusercontent.com/kH4IAi4NYLJEzIQAbhwT42KYi5yKGM9fNhE-Ra_7aH9LHiH6cfyQW44qShSb7ExDiHvySH5QH1vjnpfjXX1GqlbpDJKggKGjoPZojxRM-uH7EDxtlLi3UzNEj6QTgasCubWsJab2ZO2J6kK63QRQEDg

  2. In Zibra Liquid Collider add one of the SDF components.

    For more information about SDF components, please see SDFs.

    https://lh7-us.googleusercontent.com/pi1VhzsrHsvTUSMlUxn-2TqXeNN47P6xy1CiY_ETLNCbLbZwIiCCb9BEyAg71wvMDPoxB4cM6CTSmPYU1b96ugt2FTFdwtr_gz0rbXsFAmtQKosMTEGlcCukm7lkNbJ2ooLVdjLx3D2SHaum7X10mMY

  3. Configure newly created SDF component

  4. Open Inspector for your liquid object, and press the Add button in the list of colliders to add. You can also use the Add all button to add all colliders to your liquid instance.You may also need to expand the list of colliders to add by pressing the “Add Collider” button first.

    https://lh7-us.googleusercontent.com/CuyPuUqvJFpU0N3MPE6-4lMPfWcRVU00ghpGDlx8wGnzk_ohrsk-p6qDUx2LNeZ-Fi5lGuvdYZ1w8kNOKOVr_FRW26N0lbsxlPN5V55lw3b1iLimTL7EVvTKvRJVTfz3mUZIduIUwFHVsOR6lbjOB1c

After that your collider is ready to be used.  You can set its transform in the editor, or move it at runtime.

Collider parameters