void Awake() { rigidbody = GetComponent<Rigidbody>(); rigidbody.centerOfMass = (Vector3.zero); initialY = transform.localPosition.y; }