UV maps to detet collision location within the object

Hi guys,

I want to use the UV map of an object to detect where exactly did the collision happen in the object itself. My object is a cube. I want to detect whether the cubes collides with its edges or with its faces. Is this possible?