1

This is not a generic question on collision detection, so please read it till the end.

In my wp7 game, i represent all my objects as rectangles, and use the the Intersect() method to check for collisions between 2 rectangles, which works great.

I was thinking of enhancing the accuracy by drawing the objects as polygons instead of rectangles.

Is there a built in api such as the Rect.Intersect() that works for Polygons ?

More generic question: Is there a better approach other than the Rect.Intersect() one which utilizes .net api's and does not involve implementing collision detection algorithms?

Amr H. Abd Elmajeed
  • 1,521
  • 15
  • 41

1 Answers1

1

There is no baked in equivalent for polygons collision detection in silverlight. There is a similar question asked here. But there is a Polygon Object JIC you didn't already know

Community
  • 1
  • 1
Terrance
  • 11,764
  • 4
  • 54
  • 80