How to detect touch on rotated sprite?

Image Title

I writing a custom control extend CCControl
It’s a water handler.
When I touch the shank, it will rotate.
But when it rotate, I don’t know how to detect touch on the shank.
I try to use
getTextureRect() and getContentSize()
but I failed!


屏幕快照 2014-03-27 下午7.50.44.png (11.5 KB)


a.png (11.5 KB)

@NovemberEleven
I have finished it.:smiley:

shank

@NovemberEleven
Congratulations :slight_smile:
Please share the source code (/)