//SphereCast(Vector3 startPoint, float radius,Vector3 direction, out, float distance)
//DrawWireSphere(Vector3 startPoint + Vector3 direction * float distance , float radius)
void sphereCheckGround()
{
RaycastHit hit;
if(Physics.SphereCast(transform.position, 0.5f, -transform.up, out hit, 0.25f))
{
Debug.Log(hit.transform.tag);
}
}
void OnDrawGizmos()
{
Gizmos.color = Color.red;
Gizmos.DrawWireSphere(transform.position - transform.up * 0.25f, 0.5f);
}
Is there a question here?