Created
June 4, 2013 03:49
-
-
Save Joncom/5703442 to your computer and use it in GitHub Desktop.
ImpactJS Box2D - Get Body Count
This file contains 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
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