I’m making an FPS type game and I was wondering whether its possible to check if a bullet (sphere) hits a cube on its vertical sides (wall) or the top (floor) ?
another question somewhat related, is it possible to determine the angle of a mesh if its slanted (45 degrees, etc) and I want another object to match that same rotation when it touches it.
Thanks 
Well for the first you could just use tags, but I have no idea about the second. There should be a way to get the rotation by like target.rotation, but I don’t know if that can be read.
use function OnCollisionEnter() to get the normal of the contact point
if the normal is pointing up then it’s a floor, if it’s pointing sideways then it’s a wall
how does it detect it, is it in radians , deg or is just “up”
does it work for angles (ie ramps)
It’ll be a vector, it works most of the time but occasionally it’ll miss a contact due to the way an object is moving so you might want to use OnCollisionStay as well as / instead of OnCollisionEnter.