Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

Water

Discussion in '2D' started by Sykoo, Dec 25, 2014.

  1. Sykoo

    Sykoo

    Joined:
    Jul 25, 2014
    Posts:
    1,394
    Hi! So I've started on my new side-scroller project and I need interactive water. I do not need it to be super high quality or anything, I just want interaction of it when player jumps in to water.

    I purchased this asset but it aint working as promised:
    https://www.assetstore.unity3d.com/en/#!/content/8716
    It keeps spawning water in a bad coordinate and I cannot move it where I want in the editor because it just moves back... Literally a pain in the ass... And it's been happening the same thing whatever package I downloaded from the net.

    This is what I want:


    See when the ball collides with water?
     
  2. vakabaka

    vakabaka

    Joined:
    Jul 21, 2014
    Posts:
    1,153
  3. Sykoo

    Sykoo

    Joined:
    Jul 25, 2014
    Posts:
    1,394
  4. rabirland

    rabirland

    Joined:
    Nov 22, 2014
    Posts:
    29
    Make a filled polygon, the upper points should be re-calculated each frame... According to the forces it get...
    So you would make your own water basically...
     
    theANMATOR2b likes this.
  5. Sykoo

    Sykoo

    Joined:
    Jul 25, 2014
    Posts:
    1,394
    Do you think you can extend that a little more for a begginer with polygons? ^^ Thank you very much for your answer!
     
  6. rabirland

    rabirland

    Joined:
    Nov 22, 2014
    Posts:
    29
    Well this is not that simple :D
    First create a polygon... 4 points for the 4 edge (a square) and add pore points between the top 2...
    So you have a square shaped polygon but the top side os created from more point...
    Detect whenever an object hit your polygon, and add physics to the top points....
     
    Sykoo likes this.
  7. Sykoo

    Sykoo

    Joined:
    Jul 25, 2014
    Posts:
    1,394
    Thanks alot, I'll try my best! :)