Finding images attached to a specific body
Posted: Wed Nov 13, 2013 7:16 am
In b2dJson any way to do get image attached to b2Body? something like json.getImageByB2Body(b2Body* body)
Crushing immovable objects since 2011
https://www.iforce2d.net/forums/
Code: Select all
std::vector<b2dJsonImage*> allImages;
json.getAllImages( allImages );
for (int i = 0; i < allImages.size(); i++) {
if ( allImages[i]->m_body == theBody )
// do something with allImages[i]
}