I am using AndEngine for Android. I created a body, but it is not behind the sprite as I wanted.
Body.setTransform(Sprite.getX()/32, Sprite.getY()/32, 0);
This is what I am currently using and this is how it appears.
My body is the white circular borders, and my sprite is the red circle.
and When I remove
/32 from the code the body doesn't even appear.
FIXTURE_DEF = PhysicsFactory.createFixtureDef( 1, // density 0.75f, // elasticity 0.5f, // friction false); // isSensor
Body = PhysicsFactory.createCircleBody(this.physicsWorld, Sprite, BodyType.KinematicBody, this.FIXTURE_DEF); Body.setUserData("eSprite"); this.physicsWorld.registerPhysicsConnector(new PhysicsConnector(Sprite, Body, true, true)
my sprite is 65px ..