collision

I need a code to find out if an object has collided with an npc.