File tree 2 files changed +3
-2
lines changed
FlickBall/MFLDynamicsHelpers/Alpha Only Collision
2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -36,6 +36,7 @@ + (void)addBoundaryToBehavior:(UICollisionBehavior*)behavior
36
36
UIImage *flippedImage = [imageView.image imageRotatedByDegrees: 180 ];
37
37
38
38
UIBezierPath *viewPath = [[[PathBuilder alloc ] initWithMask: flippedImage.CGImage ] path ];
39
+ [viewPath setMiterLimit: 20 ];
39
40
[viewPath applyTransform: CGAffineTransformMakeTranslation (imageView.frame.origin.x, imageView.frame.origin.y)];
40
41
[behavior addBoundaryWithIdentifier: identifier forPath: viewPath];
41
42
}
Original file line number Diff line number Diff line change @@ -185,7 +185,7 @@ - (UIBezierPath *) convertSegmentsIntoPath:(NSMutableDictionary*)segments
185
185
// until all line segments have been consumed.
186
186
187
187
UIBezierPath *path = [UIBezierPath bezierPath ];
188
-
188
+ [path setLineJoinStyle: kCGLineJoinRound ];
189
189
// While we still have line segments to consume, unwind one bezier path
190
190
while ( [segments count ] > 0 )
191
191
[self unwindOneSegmentPath: segments intoPath: path];
@@ -318,7 +318,7 @@ - (void) addPoint:(CGPoint)newPoint toPath:(UIBezierPath *)path cachedPoint1:(CG
318
318
*point2 = newPoint;
319
319
} else {
320
320
// We changed direction, so flush the current segment, and reset the cache
321
- [path addLineToPoint : *point2];
321
+ [path addQuadCurveToPoint : *point2 controlPoint: *point1 ];
322
322
323
323
*point1 = *point2;
324
324
*point2 = newPoint;
You can’t perform that action at this time.
0 commit comments