Thanks Narwot, that’s definitely an interesting idea. So the difficulty is that if you enter the water volume, you go into “Swimming mode” which I want, because it gives it a true feeling of being able to dive into the water. I want it to lock the player to the surface when you get to the top of the volume, so the issue is how do I register when the player is at the top of the volume. Right now, as soon as you breach the top of the water even a bit, the game registers this as an “End overlap” but in my mind, it’s not ended yet because the player’s lower half is still in the water. I wonder if there’s a “Fully end overlap” rather than a “Start to end overlap” which is how the end overlap seems to behave.
Also, when it comes to locking the player to the surface, or as you suggest, locking them to a specific world height, I’m not sure how I would accomplish that. I’d have to somehow disable the physics simulation that they get when they’re in the water… disable gravity or what have you… also as it’s first person, I’d want them to be able to move in all axis along the water surface, but not be able to dive. I don’t know… I can’t even begin to imagine the logic behind this to start figuring out the code for it. But it has to be achievable since so many games have this functionality.
Also thanks Everynone. Glad you like how it’s looking so far