简体   繁体   English

Farseer Physics 3.5 Bayazit算法/分解器

[英]Farseer Physics 3.5 Bayazit Algorithm/Decomposer

How do I get to the BayazitDecomposer in XNA with Farseer Physics? 如何通过Farseer Physics BayazitDecomposer XNA中的BayazitDecomposer I am trying to convert my texture to a body. 我正在尝试将我的纹理转换为身体。 It should be 它应该是

BayazitDecomposer.ConvexPartion(verticies);

But that doesn't exist in Farseer Physics 3.5 I was wondering if anybody knew where it could be found? 但这在Farseer Physics 3.5中不存在,我想知道是否有人知道在哪里可以找到它?

Also, does Farseer Physics have an active forum or an updated documentation for this? 此外,Farseer Physics是否有一个活跃的论坛或为此目的而更新的文档? I can't seem to find one and it would really help if I could post there instead of here as it's probably annoying you all. 我似乎找不到一个,如果我可以在这里而不是在这里发布,那真的会有所帮助,因为这可能会让您讨厌。

I answered my first question, to use the algorithms and stuff, you need to do this: 我回答了我的第一个问题,要使用算法和内容,您需要这样做:

FarseerPhysics.Common.Decomposition.Triangulate.ConvexPartition(verticies, FarseerPhysics.Common.Decomposition.TriangulationAlgorithm.Bayazit);

You can also swap Bayazit with whatever other one you want to use. 您还可以将Bayazit与您要使用的任何其他交换。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM