Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/Scrawk/2D-Deformable-body-in-Unity
A 2D Deformable body simulation in Unity using FEM
https://github.com/Scrawk/2D-Deformable-body-in-Unity
deformation fem physics-simulation soft-body unity
Last synced: 2 months ago
JSON representation
A 2D Deformable body simulation in Unity using FEM
- Host: GitHub
- URL: https://github.com/Scrawk/2D-Deformable-body-in-Unity
- Owner: Scrawk
- License: other
- Created: 2017-12-31T10:09:38.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2022-01-30T13:49:41.000Z (almost 3 years ago)
- Last Synced: 2023-11-07T18:40:23.709Z (about 1 year ago)
- Topics: deformation, fem, physics-simulation, soft-body, unity
- Language: C#
- Size: 2.99 MB
- Stars: 130
- Watchers: 11
- Forks: 10
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 2D-Deformable-body-in-Unity
A 2D Deformable body simulation in Unity using FEMThis 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.
The 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.
There's a armadillo, bunny and a donut.
![Armadillo](./Media/DeformableBody1.png)
![Bunny](./Media/DeformableBody2.png)
There's also a few basic shapes created from code like a beam, torus and a random convex as shown below.
![Randon Convex](./Media/DeformableBody3.png)
And here's a GIF of the armadillo being thrown around.
![Armadillo GIF](./Media/DeformableBody4.gif)
List of physics projects
[Position-Based-Dynamics](https://github.com/Scrawk/Position-Based-Dynamics)\
[PBD-Fluid-in-Unity](https://github.com/Scrawk/PBD-Fluid-in-Unity)\
[GPU-GEMS-NBody-Simulation](https://github.com/Scrawk/GPU-GEMS-NBody-Simulation)\
[GPU-GEMS-2D-Fluid-Simulation](https://github.com/Scrawk/GPU-GEMS-2D-Fluid-Simulation)\
[GPU-GEMS-3D-Fluid-Simulation](https://github.com/Scrawk/GPU-GEMS-3D-Fluid-Simulation)\
[CyclonePhysicsEngine](https://github.com/Scrawk/CyclonePhysicsEngine)\
[2D-Deformable-body-in-Unity](https://github.com/Scrawk/2D-Deformable-body-in-Unity)