Open shakiba opened 10 years ago
When trying to iterate over world bodies or body fixtures GetNext() should return null, but it seems box2d.js returns a special object instead. How can I use it to find out if it is end of iteration?
As a workaround, you can test the body's a variable, which is 0 at the end of a list
a
0
Also, You can check .IsActive() method for every next body
.IsActive()
When trying to iterate over world bodies or body fixtures GetNext() should return null, but it seems box2d.js returns a special object instead. How can I use it to find out if it is end of iteration?