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); }
public static bool IsOnGround(GameObject gameObject, float maxGroundDistance) { RaycastHit hit; return(PhysicsHelper.IsOnGround(gameObject, maxGroundDistance, out hit)); }
public static bool IsOnGround(GameObject gameObject) { return(PhysicsHelper.IsOnGround(gameObject, PhysicsHelper.DefaultMaxGroundDistance)); }