Take the 2-minute tour ×
Game Development Stack Exchange is a question and answer site for professional and independent game developers. It's 100% free, no registration required.

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
add comment

1 Answer 1

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;
bombBody.setMassData(data);
share|improve this answer
add comment

Your Answer

 
discard

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.