This project has moved and is read-only. For the latest updates, please go here.

Using collision detection to fire a sound

Topics: User Forum
Jul 10, 2008 at 10:47 AM
I've started using farseer in my project and everything is running great. My question is how would I use farseer's collision detection to play a sound when the object is hit by another object? It has something to do with the collisionhandler but I'm lost as to how to use it.
Jul 15, 2008 at 12:24 PM
Correct, use the collision handler, and attach Tags (for identifying your geoms) to your geom objects so when they come thru the collion event you can determine what sounds to play.