I want two dynamic objects to bounce away from each other when they collide. It is desirable to be able to customize the range of bouncing. I chose the dynamic object because it already has the concept of weight and collision, but I don’t know how to give the desired effect (i have already tried experimenting with the parameters, but it did not bring much result).
I may have expressed it incorrectly, so I’ll rephrase the question
How to increase the repulsion of dynamic objects when they collide ? Right now they just collide and push each other, is it possible to make them repel each other by a distance ?
You could manually apply a force to each object after detecting a collision using the apply_force message.
Otherwise you might get better results writing your own kinematic physics. Defold uses Box2D for it’s ‘automatic’ physics and sometimes that isn’t flexible enough to get the desired result.