3
\$\begingroup\$

In AndEngine, many times we create a TextureRegion for our sprite. We can move this region around the scene but when I connect that region to a physics body I end up being able to use either one to move around.

My question is, which one do I move around. Should I use the physics body's position or the Texture?

\$\endgroup\$
5
\$\begingroup\$

1) I think this is referenced here, and if not there's a decent community over there to ask. Even a bunch of tutorials/examples documented.

2) If I'm not mistaken I think you should always use transforms/forces to move anything associated with a body to correctly step with the Box2D physics...

\$\endgroup\$
  • \$\begingroup\$ I would vote this up but I don't have enough reputation points. :) Thank you. \$\endgroup\$ – Free Lancer Mar 3 '12 at 6:36
  • \$\begingroup\$ @Free Lancer:+1 ;-)... \$\endgroup\$ – While-E Mar 6 '12 at 0:03

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.