Skip to content

Instantly share code, notes, and snippets.

@Joncom

Joncom/gist:5703442

Created Jun 4, 2013
Embed
What would you like to do?
ImpactJS Box2D - Get Body Count
getbodyCount = function() {
var count = 0;
for( var body = ig.world.GetBodyList(); body; body = body.m_next ) {
count++;
}
console.log(count);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.