What I'm trying to do is work out which side of an arbitrarily rotated rectangular sprite is hit, so I can then get a reflection angle for the Light behavior plugin.

I can already do this for sprites which stay at 0 degrees, as you can see here:

https://dl.dropboxusercontent.com/u/52354372/detect%20rectangular%20sprite%20side.capx

That's basic trig comparing the angle between sprite & hit point with 4 ranges for each side.

The problem I'm having is working out the math for a rotated sprite. Any idea how to do this?