Hi All,
I have a player sprite with 200px*200px. How to set rectangle center of sprite.
Here my code.
_playerBody = game.world.CreateBody(new Vector2(400 * PixelsToMeters, 100 * PixelsToMeters), 0f, BodyType.Dynamic);
var pfixture = _playerBody.CreateRectangle(_playerTexture.Width * PixelsToMeters, _playerTexture.Height * PixelsToMeters,1f, Vector2.Zero);