Dont transform.translate if it will collide with another object

How would I transform.translate down, and stop if it will collide with another object.
I’ve tried onTriggerEnter(), and it does not seem to work. (as in, it’s still moving)

check if either of the objects has rigidbody attached. OnTriggerEnter won’t trigger if it doesn’t.