//--------------------------------------------------------------------------------------------------------------

        private void OnTriggerExit(Collider other)
        {
            SpaceshipController controller = other.gameObject.GetComponentInParent <SpaceshipController>();

            if (controller != null)
            {
                controller.UpVector = Vector3.up;
            }
        }
        private void OnTriggerStay(Collider other)
        {
            SpaceshipController controller = other.gameObject.GetComponentInParent <SpaceshipController>();

            if (controller != null)
            {
                Vector3 upVector = other.transform.position - transform.position;
                controller.UpVector = upVector;
            }
        }
 private void Start()
 {
     SpaceshipController = GetComponent <SpaceshipController>();
     body = SpaceshipController.Body;
     body.maxAngularVelocity = 4;
 }