I am working on a third person adventure level and am using the Unity Third Person Controller for player control and I was wondering how you would edit the script so that the player couldn’t jump over the geometry to fall off the level OR move out of the boundaries of the level. Thanks for any help.
This is one of the times when I wish Unity had Plane Colliders, like in Panda3D. You’d never have to worry about penetrating those! But the usual manner is to create boundary geometry, or even better, do the boundary check in your script.
You can just check against your object coordinates, or create planes and then check against those if your world is a non-rectangular shape. Effectively, do a very simple convex hull check, save the normals are inside-out.