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