Quantcast
Channel: Questions in topic: "walk"
Viewing all articles
Browse latest Browse all 88

Make the player not able to walk in/on water

$
0
0
Hi, so basically I just need help coming up with a way to make it so that the player cannot walk in water of strange shapes, such as seen in this picture: ![alt text][1] [1]: /storage/temp/26196-water.png As you can see, the water is not a regular shape, so placing a bunch of empty gameobjects with colliders wouldn't be a very efficient solution. I tried exporting the terrain to blender and making a shape around the pond and giving that a collider, but that was extremely tedious, inaccurate, and would be an enourmous pain to implement for every source of water. Does anyone have any better solutions? Any ideas would be appreciated, thanks. To clarify: I dont want the player to be able to make contact with the water. I want them to be able to walk up to the water, but not go in it. EDIT: When I say the colliders wouldn't be an efficient solution, I mostly mean it would be difficult to get the exact outline of the water, and it would take a very long time to accomplish. Not necessarily resource efficient, but it's not time efficient or practal.

Viewing all articles
Browse latest Browse all 88

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>