Limiting the terrain that an actor can walk on

How can i create an invisible wall?