title: Car GameObject falling through the Terrain
body: <p>I have been working on a project recently and there is a scene where there are mountains, forests and a car.</p>
  
  <p>When the car moves on the terrain, the car penetrates through the terrain </p>
  
  <p>I just want to know how to stop this from happening. </p>
  
  <ul>
  <li><p>On the Car there is Mesh Collider and RigidBody is attached</p></li>
  <li><p>On Terrain There is Mesh Collider with Convex to False.</p></li>
  </ul>
  
  <hr>
  
  <pre><code>public class Motor : MonoBehaviour {
  
  public float moveSpeed = 5.0f;
  public float drag = 0.5f;
  public float terminalRoatationSpeed = 25.0f;
  public Virtualjoystick moveJoystick;
  
  private Rigidbody controller;
  private Transform camTransform;
  
  
  // Use this for initialization
  void Start () {
  
  
      controller = GetComponent&lt;Rigidbody&gt; ();
      controller.maxAngularVelocity = terminalRoatationSpeed;
      controller.drag = drag;
  
      camTransform = Camera.main.transform;
  
  
  }
  
  // Update is called once per frame
  void FixedUpdate () {
  
      Vector3 dir = Vector3.zero;
  
      dir.x = Input.GetAxis ("Horizontal");
      dir.z = Input.GetAxis ("Vertical");
  
      if(dir.magnitude &gt; 1)dir.Normalize();
  
      if(moveJoystick.InputDirection != Vector3.zero)
      {
          dir = moveJoystick.InputDirection;
      }
  
  
  
      // Rotate our Direction vector with Camera 
      Vector3 rotatedDir = camTransform.TransformDirection(dir);
      rotatedDir = new Vector3 (rotatedDir.x, 0, rotatedDir.z);
      rotatedDir = rotatedDir.normalized * dir.magnitude;
  
      controller.AddForce (rotatedDir * moveSpeed);
  
  
    }
  }
  </code></pre>