@kfireven wrote:
Hi,
I have a rectangle that has a sprite's initial position and bound and it looks like this- boundRectangle(position.x, position.y, width, height)
Now that sprite always rotates (it's a laser beam), and I want to use this rectangle to detect collisions with other objects (and for this it needs to rotate accordingly), so i guess the question is quiet obvious by now -how do I rotate that rectangle to match the sprite actual rotation? (given of course that I have the sprite's rotation angle and point of origin)
Posts: 2
Participants: 2