locked
Collision detection RRS feed

  • Question

  • How can I detect a collision between two canvases which include lots of (really, really lots of) irregular paths. What I mean is that the straight collision detection between the rectangular canvases won' t work. Any ideas?

    Sunday, July 25, 2010 3:04 PM

Answers

  • A couple of suggestions, both of which may require you to change the type of objects/controls to support what you are trying to do:

    1) http://physicshelper.codeplex.com/ This supports collision detection

    2) Google "Silverlight hittest" - you'll find lots of entries that MAY help you out.

    3) There is a HitTest method for Stroke and StrokeCollection. Not sure if you can take advantage of them.

    Monday, July 26, 2010 5:03 AM