In my game I have many good bodies and many bad one. They randomly came out from different holes on screens which i have made static type of body. Now I want to keep reference that from which holes bad body and from which good one came out.The good and bad bodies are just sprites and they are not b2body. I just want to set some kind of tag on holes(which are static body) according to bad or good body's popping up from them.Is there any way to setting userdata or tag dynamically on bodyDef even after creating body. Suggest me if any other possible solution exist

.