Polygons collision detection silverlight
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?
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
精彩评论