Question

Please, read until the end!
I want to know if that is possible:
In this picture to return “true” , because the gameObject is touching the ground completelly:


And this to return false, because the gameObject is not all the way on the ground:


I got an idea of placing a lot of empty objects on the bottom of the gameObject, which will make a check sphere, but i will have to make a ton of them and it is going to be a lot of work for nothing. I made the pictures in paint, thats why they are bad, but they are just for example.

Im still beginner adn i dont know if that is even possible, so if it is, i will be glad if you give an advice!

Generally, this can be done by creating raycast or collider trigger checks from the corners of the object, and detecting if each corner is colliding with the terrain, so you end up with something like this:

3 Likes

Thank you, i will try!