2
\$\begingroup\$

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..

\$\endgroup\$
2
  • \$\begingroup\$ 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. \$\endgroup\$
    – JohnEye
    Aug 30, 2012 at 8:53
  • \$\begingroup\$ AndEngine uses Box2D, and I bet the answer is somewhere in the documentation. \$\endgroup\$ Aug 30, 2012 at 14:38

1 Answer 1

2
\$\begingroup\$

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

MassData data =  bombBody.getMassData();
data.mass = 10f;
bombBody.setMassData(data);
\$\endgroup\$

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .