Normally, a physics frame in pink (see image below) gives the body for detecting hit signal. It usually either falls down or lifts up depending on the gravity orientation. The question is: Is it possible to move or manipulate sprite through X and Y coordinate without needing to use the gravity code from a physics engine like bodyeditor-loader-sources.jar (e.g. ballBody.setGravityScale(100.1f);) so that I can move simply either by dragging, change the value initially, or moving it by D-pad?

2 Answers
2

I used DynamicBody for my missiles, set their gravity scale to 0f, and I could move them freely the way I wanted to.

You might want to refer to Box2d documentation, chapter 7.1. You can set their flag isSensor to true, if you want them to report collisions instead of respond to them according to physics laws.

But from now on, you should use your physical body location as sprite location (remember, that Box2d uses meters as dimension unit, so you need to convert it to units your using internally for your objects; otherwise you will get different result for physics-representation and graphical-representation).