I tried the "Texture to polygon" example in the Farseer documentation. https://farseerphysics.codeplex.com/documentation But I always get this error message in the following line:
//Find the vertices that makes up the outline of the shape in the texture
Vertices verts = PolygonTools.CreatePolygon(data, polygonTexture.Width, polygonTexture.Height, true);
No overload for method 'CreatePolygon' takes 4 arguments
Is there a mistake in the Farseer documentation or what is wrong? What should I change in this line?
In addition, I get these two error messages in the following lines:
_list = BayazitDecomposer.ConvexPartition(verts);
List<Fixture> compund = FixtureFactory.CreateCompoundPolygon(World, _list, 1);
The name 'BayazitDecomposer' does not exist in the current context
'FarseerPhysics.Factories.FixtureFactory' does not contain a definition for 'CreateCompoundPolygon'
What is wrong?
I have the following three usings in my code:
using FarseerPhysics.Dynamics;
using FarseerPhysics.Factories;
using FarseerPhysics.Common;
Should I add another using?