So I'm currently having an issue to rotate my paddle in my pinball game and was wondering if i could get some assistance on how to do this. I understand to rotate clockwise you use this formula.
I've watched a bunch of rotation tutorials however when i applied rotation onto my paddle object it just ends up being in a completely different area in the game window.
Much appropriated for any help i receive and a thanks in advance.
Note that rotating a point P my multiplying it by a matrix M will rotate P around the origin. To rotate it around some point P0 (e.g. the center of a rectangle), you need to do M(P - P0) + P0.