Search Unity

  1. Unity 2020.1 has been released.
    Dismiss Notice
  2. We are looking for feedback on the experimental Unity Safe Mode which is aiming to help you resolve compilation errors faster during project startup.
    Dismiss Notice
  3. Good news ✨ We have more Unite Now videos available for you to watch on-demand! Come check them out and ask our experts any questions!
    Dismiss Notice

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:
    235
    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:
    235
    any ideas anyone? i'm really stuck on this and my swimmer looks stupid not moving with the waves. thanks
     
unityunity