# Physics Tools - generate convex shapes and concave silhouette chains of boxes

**URL:** <https://forum.defold.com/t/physics-tools-generate-convex-shapes-and-concave-silhouette-chains-of-boxes/82400>\
**Category:** The Defoldmine\
**Created:** [February 19, 2026, 11:33am UTC](https://forum.defold.com/t/physics-tools-generate-convex-shapes-and-concave-silhouette-chains-of-boxes/82400 "2026-02-19T11:33:21Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![aglitchman](https://forum-defold.b-cdn.net/user_avatar/forum.defold.com/aglitchman/32/19432_2.png) [@aglitchman](https://forum.defold.com/u/aglitchman)\
**Post date:** [February 19, 2026, 11:33am UTC](https://forum.defold.com/t/physics-tools-generate-convex-shapes-and-concave-silhouette-chains-of-boxes/82400/1 "2026-02-19T11:33:21Z")

</div>

![logo](https://github.com/indiesoftby/defold-physics-tools/blob/main/cover.jpg?raw=true)

Hey everyone!

I’m excited to share a set of editor scripts to generate Defold physics shapes for 2D physics from images..

### Convex Shape Generator

This tool computes a convex hull of all non-transparent pixels.

 ![image](https://forum-defold-uploads.b-cdn.net/original/3X/8/d/8d46d1b8a20cf16eeae73f78021f021a9ae99120.png)

### Silhouette Chain Generator (Concave Walls)

Since Box2D doesn’t natively support concave polygons for dynamic physics, this tool solves that by creating a **chain of thin boxes** that trace the silhouette of your image.

 ![image](https://forum-defold-uploads.b-cdn.net/original/3X/6/9/69e66a1fafea00422482866e7c8c00f1143ef665.png)

The extension uses a command-line tool written in Zig to process the images and includes pre-compiled binaries for Windows, macOS (Intel/Silicon), and Linux, so it just works everywhere.

Available at → [GitHub - indiesoftby/defold-physics-tools: Stuff to help with 2D physics in the Defold game engine · GitHub](https://github.com/indiesoftby/defold-physics-tools)

Feel free to try it out and let me know if you have any feedback or feature requests!

Happy Defolding! 🌠
