/// <summary>
        /// Return Character Controller's info
        /// </summary>
        /// <param name="cap"> object we want to take from </param>
        /// <returns> width and height </returns>
        public static JCS_ColliderInfo GetColliderInfo(CharacterController cap)
        {
            // holder
            JCS_ColliderInfo capInfo = new JCS_ColliderInfo();

            Vector2 cWH = GetColliderWidthHeight(cap);

            capInfo.width  = cWH.x;
            capInfo.height = cWH.y;

            Vector3 centerPos = GetColliderCenterPosition(cap);

            capInfo.centerPosition = centerPos;

            return(capInfo);
        }
        /// <summary>
        /// Returns character controller's infomration.
        /// </summary>
        /// <param name="cap"></param>
        /// <returns></returns>
        public static JCS_ColliderInfo GetColliderInfo(BoxCollider rect)
        {
            JCS_ColliderInfo rectInfo = new JCS_ColliderInfo();

            Vector2 rWH = GetColliderWidthHeight(rect);

            // get width and height.
            rectInfo.width  = rWH.x;
            rectInfo.height = rWH.y;

            Vector3 centerPos = GetColliderCenterPosition(rect);

            rectInfo.centerPosition = centerPos;

            rectInfo.MeasureBounding();

            return(rectInfo);
        }