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\$

1 Answer 1

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\$
2
  • \$\begingroup\$ I would vote this up but I don't have enough reputation points. :) Thank you. \$\endgroup\$ Mar 3, 2012 at 6:36
  • \$\begingroup\$ @Free Lancer:+1 ;-)... \$\endgroup\$
    – While-E
    Mar 6, 2012 at 0:03

You must log in to answer this question.

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