title: What is the best way to evenly distribute objects to fill a curved space in Unity 3D?
body: <p>I would like to fill this auditorium seating area with chairs (in the editor) and have them all face the same focal point (the stage). I will then be randomly filling the chairs with different people (during runtime). After each run the chairs should stay the same, but the people should be cleared so that during the next run the crowd looks different.</p>
  
  <p>The seating area does not currently have a collider attached to it, and neither do the chairs or people.</p>
  
  <p><a href="https://i.stack.imgur.com/w1kUp.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/w1kUp.png" alt="enter image description here"></a></p>
  
  <p>I found this code which has taken care of rotating the chairs so they target the same focal point. But I'm still curious if there are any better methods to do this.</p>
  
  <pre><code>//C# Example (LookAtPoint.cs)
  using UnityEngine;
  [ExecuteInEditMode]
  public class LookAtPoint : MonoBehaviour
  {
      public Vector3 lookAtPoint = Vector3.zero;
  
      void Update()
      {
          transform.LookAt(lookAtPoint);
      }
  }
  </code></pre>
  
  <p>Additional Screenshots</p>
  
  <p><a href="https://i.stack.imgur.com/lALQs.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/lALQs.png" alt="enter image description here"></a></p>
  
  <p><a href="https://i.stack.imgur.com/69zP5.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/69zP5.png" alt="enter image description here"></a></p>
  
  <p><a href="https://i.stack.imgur.com/u7bVa.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/u7bVa.png" alt="enter image description here"></a></p>