コード例 #1
0
        public static bool IsOnGround(GameObject gameObject, float maxGroundDistance, out GameObject hittedGameObject)
        {
            RaycastHit hit;

            if (PhysicsHelper.IsOnGround(gameObject, maxGroundDistance, out hit))
            {
                hittedGameObject = hit.collider.gameObject;
                return(true);
            }

            hittedGameObject = null;
            return(false);
        }
コード例 #2
0
        public static bool IsOnGround(GameObject gameObject, float maxGroundDistance)
        {
            RaycastHit hit;

            return(PhysicsHelper.IsOnGround(gameObject, maxGroundDistance, out hit));
        }
コード例 #3
0
 public static bool IsOnGround(GameObject gameObject)
 {
     return(PhysicsHelper.IsOnGround(gameObject, PhysicsHelper.DefaultMaxGroundDistance));
 }