Change a body's density and friction

I am porting my game to Corona, but it heavily relies on changing the density and friction of particular physics bodies after already being created. In Box2D it just involves setting the new value on the fixture, and calling ResetMassData() if the density is changed. This function already exists in Corona, but there is no way to give it a new density or shape as far as I know…

I thought a workaround would be just to recreate and destroy the old bodies, but it causes a lot of problems with joints.

This is the only limitation that is preventing me from finishing my game.

Thanks, [import]uid: 58642 topic_id: 22038 reply_id: 322038[/import]

I am also having the same problem in being unable to modify set value in a physics body. Destroying / readding bodies also gives me problems.

Here is my thread in feature request :

http://developer.anscamobile.com/forum/2012/03/08/modify-collision-filter-properties-after-physics-body-creation

And yes it also stops me from shipping - If you read my thread you will see why :frowning:
[import]uid: 118687 topic_id: 22038 reply_id: 91911[/import]