Rotation, further I go from 0:0, the further the object positions around the origin while rotating
- by Serguei Fedorov
For some reason I am having the issue where the following code:
global.spriteBatch.Draw(obj.sprite, obj.getPosition(), null, Color.White, obj.rotation, obj.center, 2f, SpriteEffects.None, 1);
causes the object to rotate around the origin in such a way, as though there is an offset to the position relative to its location. The calculation for…