kdrnic/box2dweb

b2Body.GetFixtureList does not return a list

Opened this issue · 0 comments

Since a body can have multiple fixtures attached to it, it would be nice if 
GetFixtureList (and all other Get...List functions) would return an actual 
array of fixtures, rather than a single fixture. Particularly for bodies with a 
complex shape that necessitates using multiple fixtures, getting a list of all 
of these is currently impossible

(note that the C++ version of box2d implicitly returns a list by returning a 
pointer to an array. I don't know what the actionscript implementation does, 
but it *should* return an array, not a single fixture =)

Original issue reported on code.google.com by niho...@gmail.com on 20 Dec 2012 at 10:34