title: How to automatically create walls of a given height with collisions on the edges of auto generated AR plane in Unity?
body: <p>I am working on an application that uses horizontal surfaces in AR. I don't have much experience with Unity but I was able to create automatically generated planes with which objects can collide (example: a falling and rolling dice). Unfortunately, sometimes such objects fall outside the plane area and fall into the void.</p>
  <p>I would like to create something similar to invisible walls around the detected plane to keep the objects inside the plane.</p>
  <p>Plane configuration i am currently using:</p>
  <p><a href="https://i.stack.imgur.com/4R8m4.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/4R8m4.png" alt="AR Plane prefab used." /></a></p>
  <p>Application:</p>
  <p><a href="https://i.stack.imgur.com/wimJY.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/wimJY.jpg" alt="Application context" /></a></p>
  <p>Edges of plane are marked with red line.</p>