{"id":16609450,"url":"https://github.com/Scrawk/2D-Deformable-body-in-Unity","last_synced_at":"2025-10-29T16:32:48.176Z","repository":{"id":48174818,"uuid":"115856004","full_name":"Scrawk/2D-Deformable-body-in-Unity","owner":"Scrawk","description":"A 2D Deformable body simulation in Unity using FEM","archived":false,"fork":false,"pushed_at":"2022-01-30T13:49:41.000Z","size":3134,"stargazers_count":130,"open_issues_count":1,"forks_count":10,"subscribers_count":11,"default_branch":"master","last_synced_at":"2023-11-07T18:40:23.709Z","etag":null,"topics":["deformation","fem","physics-simulation","soft-body","unity"],"latest_commit_sha":null,"homepage":null,"language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Scrawk.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-12-31T10:09:38.000Z","updated_at":"2023-10-15T14:58:22.000Z","dependencies_parsed_at":"2022-09-10T06:12:48.197Z","dependency_job_id":null,"html_url":"https://github.com/Scrawk/2D-Deformable-body-in-Unity","commit_stats":null,"previous_names":[],"tags_count":0,"template":null,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Scrawk%2F2D-Deformable-body-in-Unity","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Scrawk%2F2D-Deformable-body-in-Unity/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Scrawk%2F2D-Deformable-body-in-Unity/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Scrawk%2F2D-Deformable-body-in-Unity/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Scrawk","download_url":"https://codeload.github.com/Scrawk/2D-Deformable-body-in-Unity/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":219857405,"owners_count":16556062,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["deformation","fem","physics-simulation","soft-body","unity"],"created_at":"2024-10-12T01:29:03.771Z","updated_at":"2025-10-29T16:32:47.575Z","avatar_url":"https://github.com/Scrawk.png","language":"C#","funding_links":[],"categories":["C# #"],"sub_categories":[],"readme":"# 2D-Deformable-body-in-Unity\nA 2D Deformable body simulation in Unity using FEM\n\nThis a port of the 2D FEM project by [Miles Macklin](http://blog.mmacklin.com/) found [here](https://github.com/mmacklin/sandbox) from C++/OpenGL to C# Unity. The code is not that stable and the physics can break if pushed too far but its a nice introduction to deformable bodies using the Finite Element Method.\n\nThe original did also implement fracturing of the mesh but I have not fully ported that and probably wont. The project provides a few options to load the scene with various meshes and has some neat code that creates a mesh from a image.\n\nThere's a armadillo, bunny and a donut.\n\n![Armadillo](./Media/DeformableBody1.png)\n\n![Bunny](./Media/DeformableBody2.png)\n\nThere's also a few basic shapes created from code like a beam, torus and a random convex as shown below.\n\n![Randon Convex](./Media/DeformableBody3.png)\n\nAnd here's a GIF of the armadillo being thrown around.\n\n![Armadillo GIF](./Media/DeformableBody4.gif)\n\nList of physics projects\n\n[Position-Based-Dynamics](https://github.com/Scrawk/Position-Based-Dynamics)\\\n[PBD-Fluid-in-Unity](https://github.com/Scrawk/PBD-Fluid-in-Unity)\\\n[GPU-GEMS-NBody-Simulation](https://github.com/Scrawk/GPU-GEMS-NBody-Simulation)\\\n[GPU-GEMS-2D-Fluid-Simulation](https://github.com/Scrawk/GPU-GEMS-2D-Fluid-Simulation)\\\n[GPU-GEMS-3D-Fluid-Simulation](https://github.com/Scrawk/GPU-GEMS-3D-Fluid-Simulation)\\\n[CyclonePhysicsEngine](https://github.com/Scrawk/CyclonePhysicsEngine)\\\n[2D-Deformable-body-in-Unity](https://github.com/Scrawk/2D-Deformable-body-in-Unity)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FScrawk%2F2D-Deformable-body-in-Unity","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FScrawk%2F2D-Deformable-body-in-Unity","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FScrawk%2F2D-Deformable-body-in-Unity/lists"}