Farseer 설명서에서 "다각형으로 텍스처"예제를 시도했습니다. https://farseerphysics.codeplex.com/documentation 그러나 나는 항상 다음 줄에이 오류 메시지가 얻을 :Farseer 설명서의 어려움
//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
실수가 시어 설명서에 있는가 또는 잘못 무엇을? 이 줄에서 무엇을 변경해야합니까?
은 또한, 나는 다음과 같은 라인이 두 가지 오류 메시지를 얻을 :
_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'
에 어떤 문제가 있습니까?
내 코드에서 다음과 같은 세 가지 using이있다 :
using FarseerPhysics.Dynamics;
using FarseerPhysics.Factories;
using FarseerPhysics.Common;
내가 추가해야 다른 사용하고 계십니까?
마지막 두 개의 오류는 필요한 파일에 대한 참조 부족을 나타냅니다. – tnw
상단에 'FarseerPhysics 사용'라이브러리가 있습니까? – jszigeti
사용하지 않는 것이 있는지 나는 모른다. 지금은 세 가지 용도로 사용합니다. 다른 것을 사용해서 추가해야합니까? – Leo