Example #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);
        }
Example #2
0
        public static bool IsOnGround(GameObject gameObject, float maxGroundDistance)
        {
            RaycastHit hit;

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