What AnimalMan says… perfect.
But there might be other ways too, if you are only interested in ONE collider:
Raycasting, colliders, planes, Plane, etc: