I'm currently using the Farseer tools to create a body from a Texture2D. However, my texture is a spritesheet and I need to get the uint array containing the colors from a portion of the full Texture2D.
Let's say may texture is 200x200 big and I need to get the colors in the Rectangle(20, 20, 40, 40). I know that there is a GetData() overload and I'd imagine I have to call it like this:
uint subData = new uint[40 * 40]; polygonTexture.GetData(0, new Rectangle(20, 20, 40, 40), subData, 0, 40*40);
However, I always get a "System.NotImplementedException", probably due to MonoGame. Is there another easy way to do this? Or do I have to create a Subtexture and then get the Colors from that subtexture?
Any help would be appreciated, thanks!