I am learning game development and i am trying to implement the AndEngineBox2D Extension such that my character is always moving at a constant velocity, when it collides with a body sprite, the character automatically changes direction (is deflected) and moves in the new direction until another collision has happened and the same is done repeatedly.

My Question: Is it possible to implement the changes in trajectory with AndEngineBox2D's physics world or i have to to handle it manually is java code.

  • \$\begingroup\$ In your question you describe 'constant velocity' and not 'constant acceleration'. Thus your question title and your question do not match up. \$\endgroup\$ – planetmaker Oct 26 '15 at 8:45
  • \$\begingroup\$ There seem to be 2 questions here: about implementing constant velocity in Box2D and about... whether Box2D works? \$\endgroup\$ – Anko Dec 25 '15 at 19:29

You will need to do it manually for best effect. Unless you want a less polished looking deflection.


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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