title: i have a bug with my ship, it doesn't want to appear in my game side and i dont know why
body: <p><strong>these are the settings of my ship</strong></p>
  
  <p><img src="https://i.stack.imgur.com/aN0T2.png" alt="these are the settings of my my ship"></p>
  
  <p><strong>And these are my camera settings</strong></p>
  
  <p><img src="https://i.stack.imgur.com/dBE2b.png" alt="and these are my camera settings"></p>
  
  <p>this is the code that is added to the ship, my problem as you can see is that i can't find my ship in the game which later on caused a lot of problems :(</p>
  
  <pre><code>using UnityEngine;
  using System.Collections;
  
  public class PlayerControll : MonoBehaviour {
      public float speed = 5.0f;
  
      float xmin;
      float xmax;
  
      void Start(){
          float distance = transform.position.z - Camera.main.transform.position.z;
          Vector3 leftmost = Camera.main.ViewportToWorldPoint(new Vector3(0,0,distance));
          Vector3 rightmost = Camera.main.ViewportToWorldPoint(new Vector3(1,0,distance));
          xmin = leftmost.x;
          xmax = rightmost.x;
  
      }
      void Update () {
          if(Input.GetKey(KeyCode.LeftArrow)){
  
              transform.position += Vector3.left * speed * Time.deltaTime;
  
          }else if (Input.GetKey(KeyCode.RightArrow)){
  
              transform.position += Vector3.right * speed * Time.deltaTime;
  
          }
          float newX = Mathf.Clamp (transform.position.x, xmin, xmax);
          transform.position = new Vector3 (newX, transform.position.y, transform.position.z);
      }
  }
  </code></pre>