How to use Physics.CheckSphere for ground checking

The line of code is -
isGrounded = Physics.CheckSphere(transform.position, groundCheckDistance, groundMask);

I did this but I do not understand how to use checksphere like what is basic syntax layout is for it and why are we putting those values and all that.

When in doubt, read the docs: Unity - Scripting API: Physics.CheckSphere

1 Like