Anyone have a method for looping through all physics bodies?
[import]uid: 36381 topic_id: 7263 reply_id: 307263[/import]
How about adding them to a display group when they are created? Then you should be able so use a for loop on the group, no?
[import]uid: 13529 topic_id: 7263 reply_id: 25533[/import]
Thanks! That will work for what I’m doing.
I am curious if there is a method of the physics class that I should be using instead? I think an array of contacts is maintained by the physics class, I wonder if there is an array of bodies, joints, etc.?
Or maybe we’re just left to find our own way of cycling through… in which case, this works
[import]uid: 36381 topic_id: 7263 reply_id: 25779[/import]