Created
March 3, 2013 17:26
-
-
Save unstoppablecarl/5077079 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// create impact collision listener | |
var listener = new b2.ContactListener(); | |
listener.Add = callback; | |
listener.Remove = callback; | |
listener.Persist = callback; | |
listener.Result = callback; | |
// attach to box2d world | |
ig.world.SetContactListener(listener); | |
var callback = function(point){} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment