Search Unity

floating up and down on waves in water4

Discussion in 'Editor & General Support' started by steveh2112, Feb 25, 2020.

  1. steveh2112

    steveh2112

    Joined:
    Aug 30, 2015
    Posts:
    314
    how would i find the height of the water at any specific point so i can move swimmers, boats, etc up and down with the waves?

    i doubt raycasting down will work because there is no collider

    best to get info from the Water script i guess, but not sure where. i don't it if it works by manipulating the mesh or just does something tricking with lighting effects.
     
    Last edited: Feb 25, 2020
  2. steveh2112

    steveh2112

    Joined:
    Aug 30, 2015
    Posts:
    314
    any ideas anyone? i'm really stuck on this and my swimmer looks stupid not moving with the waves. thanks