Water plugin: How can I get the surface z position?

I tried a line trace straight down, but for some reason it ignores the water surface and hits the landscape. Is there some other way?


There is for sure

Any screenshot? What are you trying to find in the hit channel, or maybe it’s a linetrace for object? Or a multiline trace looking for all stars in the universe eventually hitting the water?

Hard to answer a poor post

My advice - read docs about the Collision Channels

Did you manage to find out about that?

Afaik water surface is deformed on gpu so simple trace will return same height across the water plane. You can try and check how buoyancy component manages to sample/simulate it.

1 Like