check if an object is grounded in unity code example
Example: check if an object is grounded or not in unity
// Add a character controller to your object
public CharacterController controller;
if (controller.isGrounded)
{
// Jump 'FOR EXAMPLE'
}