In my game, I want to change density of my body object when it collide with other objects. I found something like following to change density but further I could not able to find any hint for this. So someone please help.
Fixture fixture = goldenBoxArrayList.get(i)
.getGoldenBoxBody()
.getFixtureList().get(0);
fixture.setDensity(0.5f);
After setting fixture data I could not able to set it to the body.
EDIT : I want to change my object body density when physics world in simulation