Game Development Stack Exchange is a question and answer site for professional and independent game developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

How to set the user mass data of dynamic body in andEngine. My problem is that in my game when i increase the speed of running player, the player on jump cover very long distance with x-axis. This distance changes with the speed. Any solution please..

share|improve this question
Do not post the same question on SO and Gamedev. You can ask mods to migrate the question from there to here if you feel so inclined. – JohnEye Aug 30 '12 at 8:53
AndEngine uses Box2D, and I bet the answer is somewhere in the documentation. – John McDonald Aug 30 '12 at 14:38
up vote 2 down vote accepted

For setting mass data of dynamic body following code can help you.

MassData data =  bombBody.getMassData();
data.mass = 10f;
share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.