This is a follow up request for : https://www.b4x.com/android/forum/t...is-for-objects-from-tiled.140262/#post-888593
Erel, I hadn't been able to answer the last question you asked me in the related post, since due to a matter of time I couldn't advance as long as I wanted with all the pending issues in my app.
Answering the questions, I am trying to delete the bodies with bw.Delete(bw.X2.gs) but it doesn't happen, I even set a body time to live with bw.TimeToLiveMs=1 , but it doesn't.
I am getting the bodies of the Sub World_BeginContact, bodies.OtherBody.
In the example you provided I see that from Tiled the life time is configured and for this reason I suppose that it does not cause a problem, but I think that with a command from B4X it should respond in the same way.
Erel, I hadn't been able to answer the last question you asked me in the related post, since due to a matter of time I couldn't advance as long as I wanted with all the pending issues in my app.
Answering the questions, I am trying to delete the bodies with bw.Delete(bw.X2.gs) but it doesn't happen, I even set a body time to live with bw.TimeToLiveMs=1 , but it doesn't.
I am getting the bodies of the Sub World_BeginContact, bodies.OtherBody.
In the example you provided I see that from Tiled the life time is configured and for this reason I suppose that it does not cause a problem, but I think that with a command from B4X it should respond in the same way.