Check direction of collision?

Ok so for my next game I need to be able to see if an object collides with either the top or side of objects, the only problem is, is that there will be a ton of objects on screen and I don’t want to have to use multiple colliders if theres anyway around it(for performance and simplicities sake).

The Collision object passed to OnCollisionEnter contains an array of contact points. Among other things, the point object has a field for the normal vector of the incoming surface. You might be able to use the direction of the normal to determine whether side of the object was hit.

I figured out how to use CollisionFlags on character controller.