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

Author Topic: Shape Collision  (Read 4168 times)

0 Members and 2 Guests are viewing this topic.

Jarwulf

  • Newbie
  • *
  • Posts: 37
    • View Profile
Shape Collision
« on: November 26, 2009, 07:42:23 am »
Hi, the wiki lists sprite collision detection here

http://www.sfml-dev.org/wiki/en/sources/simple_collision_detection

but I'm also interested in collisions between Shapes and Strings as well as collisions between different catagories of objects. How could it be modified to make this possible?

Thanks

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
Shape Collision
« Reply #1 on: November 26, 2009, 08:27:12 am »
To detect collisions between arbitrary convex polygons, you have to look at the "separating axis theorem".
Laurent Gomila - SFML developer

Nexus

  • SFML Team
  • Hero Member
  • *****
  • Posts: 6287
  • Thor Developer
    • View Profile
    • Bromeon
Shape Collision
« Reply #2 on: November 26, 2009, 08:12:10 pm »
Zloxx II: action platformer
Thor Library: particle systems, animations, dot products, ...
SFML Game Development: