我正在尝试定义一个由物理世界界定的身体更新的多边形。这是我的尝试:
public Body _body;
public Shape _shape;
_primitiveBatch = new PrimitiveBatch(_game.GraphicsDevice);
_shape = new PolygonShape(_vertices, 1);
Vector2 _position = FarseerPolygon.getCenter(((PolygonShape)_shape).Vertices);
_body = new Body(_world);
_body.Position = _position;
_body.CreateFixture(_shape);
_body.BodyType = BodyType.Dynamic;
_body.Restitution = 0.9f;
_body.Friction = 1f;
身体改变了它的位置,但不改变形状。Body.CreatePolygon 也不起作用。任何帮助将不胜感激,因为我被困在这里......谢谢,