Quantcast
Channel: Community | MonoGame - Latest topics
Viewing all articles
Browse latest Browse all 6821

rectangle rotation for collision detection

$
0
0

@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

Read full topic


Viewing all articles
Browse latest Browse all 6821

Trending Articles