예제 #1
0
        public static Fixture AttachEdge(TSVector2 start, TSVector2 end, Body body, object userData = null)
        {
            EdgeShape shape = new EdgeShape(start, end);

            return(body.CreateFixture(shape, userData));
        }
예제 #2
0
 public bool CompareTo(EdgeShape shape)
 {
     return(this.HasVertex0 == shape.HasVertex0 && this.HasVertex3 == shape.HasVertex3 && this.Vertex0 == shape.Vertex0 && this.Vertex1 == shape.Vertex1 && this.Vertex2 == shape.Vertex2 && this.Vertex3 == shape.Vertex3);
 }