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

    Creating Analytic Colliders GameObjects .png

  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.

    “Add Collider” button first.png

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”.

    Zibra Liquid Collider.png

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

    For more information about SDF components, please see SDFs.

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

  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.

    “Add Collider” button first liquid.png

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

Collider parameters