Exact hitTest

I am making a game and it has a very curvy environment I want the chacacter to die when it hits the environment and not the bounding box example included