LibGDX Box2D Body and Sprite AND DebugRenderer out of sync
- by Free Lancer
I am having a couple issues with Box2D bodies. I have a GameObject holding a Sprite and Body. I use a ShapeRenderer to draw an outline of the Body's and Sprite's bounding boxes. I also added a Box2DDebugRenderer to make sure everything's lining up properly.
My problem is the Sprite and Body at first overlap perfectly, but as I turn the Body…