Post

XPBD Soft-Body Simulation on iOS

Metal, Swift. Real-time soft-body bunny running in 60fps on the iPhone.

XPBD Soft-Body Simulation on iOS

A real-time soft-body physics playground written in Swift and rendered with Metal, inspired by Matthias Müller’s TenMinutePhysics

MetalSoftBody is my 2-week exploration of:

  • soft-body deformations
  • extended position based dynamics (XPBD) simulations
  • writing Metal code + iOS development

The basic rendering & shading code was repurposed from the sample code in Metal by Tutorials by Caroline Begbie & Marius Horga.

See my GitHub Repo…

This post is licensed under CC BY 4.0 by the author.