I have a "spike" object which I want to implement into my game, which has:
- A particular image, which looks something like this:


- A position
- And a rotation
The position and rotation can change dynamically.
I can get the thing to display, but I don't know how to do collision detection. I was thinking of either creating some sort of shape around the object upon initialization and somehow collision detect with that, or use pixel perfect collision.
However I don't know which one is better, or if there is another solution, and in any case I dont know how to achieve those things. I have only dealth with rectangles and circles when it comes to collision detection in the past.
Can someone give me a hand?