Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: Perfect collision with rotated rectangle  (Read 2787 times)

0 Members and 1 Guest are viewing this topic.

Mr_Blame

  • Full Member
  • ***
  • Posts: 192
    • View Profile
    • Email
Perfect collision with rotated rectangle
« 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).

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
Re: Perfect collision with rotated rectangle
« Reply #1 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.
Laurent Gomila - SFML developer

Mr_Blame

  • Full Member
  • ***
  • Posts: 192
    • View Profile
    • Email
Re: Perfect collision with rotated rectangle
« Reply #2 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
« Last Edit: March 03, 2015, 07:21:00 am by Mr_Blame »

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 11034
    • View Profile
    • development blog
    • Email
AW: Perfect collision with rotated rectangle
« Reply #3 on: March 03, 2015, 07:59:21 am »
Official FAQ: https://www.sfml-dev.org/faq.php
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/