Creating Player Boundaries

Hello, I’m working on an average sized ‘open world’ type project and i’ve got the the stage of adding the boundaries on so players don’t fall of the map etc… The trouble is I have a LOT of areas that need cornering off and they are often rather odd shapes, like around the outside of an island for example. I’ve been reading up on adding the boundaries and the most common method is to literally add an invisible cube to players can’t walk through it, however I’ve found another member of the community has posted a script allowing you to add ‘posts’ around the shape.

I’ve never really looked at this in a large scale, would somebody be able to offer me some insight? I was hoping for a method along the lines of creating a free-transform shape for the more detailed areas however I’m not really sure how to go about this.

-Invisible Walls.
-You can also widen the map and put mountains in the background so that you can use said walls to block it off.
-Put a kill trigger under the map so that players will die and respawn if they fall off. Make death areas a clear and present danger, use warning signs if need be.

Ah I didn’t think of a fall back, thanks! However my main query was with regards to cornering off certain areas like, don’t let the player walk out into the ocean while on an island. How to create that kind of boundary to restrict where players can walk.

They could drown after a certain period of time. Very similar to Wow’s fatigue method. Depending on how far of a stretch this would be for your game world, you could also have an invincible monster that will eat the player after so far a swim.

I’m hopefully going to add things like deep see swimming and ships later on once i get more experienced with this so I’m not sure if that is an option. The trouble would be for example steep terrain and parts of a jungle or town etc… the generic areas that have objects in them without collisions. I don’t really want players to get into an area where they are likely to get stuck on something stupid.

I was thinking about implementing some type of fatigue deal but not sure how to go about it. Are there any AI packs out there that have scripting for something like this or any place that may have samples of how to go about scripting it?

Thanks!

You could even go the extra mile and add some effects at the borders of your map, like waterfalls where there are oceans or crumbling rocks so it’s not just cut off but looks like an intentional “end of the world”.

You could also make the player “think” he’s going straight when he’s going in circles - if you don’t have a GUI map that’s easy- turn the player “a bit more to the left” - even if you do have a map the map can “play along” to make the player think he’s going straight when he’s going in large circles

There’s a great tool on the Asset Store for this: uDesign (formerly called “Boundary Tool”). It’s really useful for quickly adding boundaries to a large map.