SFML community forums

Help => Graphics => Topic started by: Mr_Blame on March 02, 2015, 10:28:42 am

Title: Perfect collision with rotated rectangle
Post by: Mr_Blame on March 02, 2015, 10:28:42 am
Help me! I need some help I have a rectangle. How to make perfect collision with rotated rectangle without any extra empty space (getGlobalBounds() feature that is comfortable in some ways).
Title: Re: Perfect collision with rotated rectangle
Post by: Laurent on March 02, 2015, 11:13:49 am
Quote
Help me! I need some help
This is usually not the best way to start a forum post... ;)

Quote
How to make perfect collision with rotated rectangle
Collision between a rotated rectangle and what?

The best way to figure out how to implement collisions is often to type "rotated rectangle xxx collision" in Google and get some algorithm or source code. There are tons of relevant answers.
Title: Re: Perfect collision with rotated rectangle
Post by: Mr_Blame on March 03, 2015, 07:17:18 am
 :-\ I so bad at searching I was looking for it about half hour but I didn't find anything. If you want to know collision with another rectangle or point.
OS windows 8
SFML 2.2
Title: AW: Perfect collision with rotated rectangle
Post by: eXpl0it3r on March 03, 2015, 07:59:21 am
I don't believe you: http://www.google.com/search?q=rotated+rectangle+collision