public RobDemo(Image image) : base(image) { Settings.ContactIteration = 20; _combinedParticle = new CombinedParticle(_vertexs, 3, 1, true); PhysicsWorld.AddObject(_combinedParticle); // 为顶点绑定形状 foreach (var vertex in _combinedParticle.Vertexs) { vertex.BindShape(new Circle(4.ToSimUnits())); } // 增加边缘 PhysicsWorld.CreatePolygonEdge(_edgePoints.ToArray()); // 增加重力 PhysicsWorld.CreateGravity(9.8); DrawQueue.Add(this); Start = true; }