# A solo developer's cloth simulation engine handles two-way collisions, a rarity among game engines

Original title: Cloth Simulation with XBPD

> Hacker News story 50670668 · language: en · submitted 2026-11-27
> Web version: https://zeli.app/story/50670668
> About this feed: https://zeli.app/llms.txt · Agent guide: https://zeli.app/skill.md

▲ 41 · by [ricardobeat](<https://news.ycombinator.com/user?id=ricardobeat>) · 💬 15
[original](<https://ricar.do/2026/11/26/cloth-sim.html>) · [HN discussion](<https://news.ycombinator.com/item?id=50670668>)

## Summary

A developer building a small native 3D engine called drie implemented an XPBD cloth solver that runs in compute shaders, with deterministic replay, crease preservation, aerodynamic drag, and two-way collision between cloth and objects—a feature few engines offer without add-ons. Tangling and ripping remain tricky: points slip through coarse meshes, and drag handles act as tethers that make the cloth feel like jello. WebGPU demos include handkerchiefs, furniture drapes, and banners.

## Key quote

> The two-way collision is pretty sweet — as far as I've researched, very few engines have it without add-ons.

## HN discussion (15 comments)

### [mandeepj](<https://news.ycombinator.com/item?id=50701710>)

> These days a lot of startups are using vision models for quick try-on clothes and seeing products in your home. These are funded by YC. I will add links later. Not saying they are better than cloth simulation.
>
> I had a startup in the this space. For some reason, virtual tryrooms never caught on with people.

### [enjoyyourlife](<https://news.ycombinator.com/item?id=50700887>)

> If you don't have WebGPU enabled, https://claude.ai/artifact/YV3wTiemkwoKcBthirFp33 has a cloth simulator that works without it

### [pixelpoet](<https://news.ycombinator.com/item?id=50698649>)

> Typo in the headline, PBD stands for Position Based Dynamics.

---

## Cite

- Page: https://zeli.app/story/50670668
- Date: 2026-11-27
- Source: ricar.do (https://ricar.do/2026/11/26/cloth-sim.html)
- Hacker News: https://news.ycombinator.com/item?id=50670668

## Other languages

- zh: https://zeli.app/zh/story/50670668 · markdown: https://zeli.app/zh/story/50670668.md
- ja: https://zeli.app/ja/story/50670668 · markdown: https://zeli.app/ja/story/50670668.md
- ko: https://zeli.app/ko/story/50670668 · markdown: https://zeli.app/ko/story/50670668.md
- de: https://zeli.app/de/story/50670668 · markdown: https://zeli.app/de/story/50670668.md
- es: https://zeli.app/es/story/50670668 · markdown: https://zeli.app/es/story/50670668.md
- ru: https://zeli.app/ru/story/50670668 · markdown: https://zeli.app/ru/story/50670668.md
