Skip to content

Instantly share code, notes, and snippets.

@unstoppablecarl
Created March 3, 2013 17:26
Show Gist options
  • Save unstoppablecarl/5077079 to your computer and use it in GitHub Desktop.
Save unstoppablecarl/5077079 to your computer and use it in GitHub Desktop.
// 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