SpriteKit SKPhysicsBody Path Generator

automatically create paths for your SpriteKit physics bodies with this free online tool.

Instructions: Drag and drop an image into the box below or click on the box to select an image from your computer. Adjust the settings as required, then click on the Recalculate button to see the effect of your changes.

New Update: Now includes a force convex mode (enabled by default) to ensure 100% compatibility with SpriteKit Physics Bodies, and also to reduce the points count - enjoy! :)

Image:

Output:



Total Points: 0

Enter No. Raycasters (Min. 16, Max. 360):

Note - using a higher number of raycasters will produce a more precise rendition of the image's shape.

Tolerance: (Default = 1.0)

Note - higher tolerance values will result in potentially fewer points, but also a less accurate polygon path.

Enable High Quality Mode:

Force to Convex:

(0, 0) at Bottom Left:

Retina Mode:

Output Format:

Recalculate...

Please enter any comments/suggestions below. Thanks.

© Copyright 2015 Space Cadets. All rights reserved.

(N.B. SpriteKit SKPhysicsBody paths must be convex)Objective CSwift