Repository navigation
Commit 28d0ba9
authored
feat: add support for soft-bodies (#1010)
* feat(soft-body): add real-time soft bodies with deformable surface colliders, debug rendering and testbed support
* feat(soft-body): add the 2D and 3D demos and integration tests
* feat(soft-body): add the FEM solver behind the `fem` feature, with demos, tests and a bench
* feat(soft-body): add clusters: SoftFrame proxies, per-cluster shape matching, material sugar and impulse joints on clusters
* feat(testbed): add soft joints demos, mouse dragging of dynamic objects and a Debug tab, fix the camera view axis
* feat(soft-body): bind collision meshes to clusters with `ColliderSet::insert_deformable`, wire meshes, CCD targets and mesh rendering
* feat(soft-body): tangle prevention and detection: recovery settings, velocity margin, edge speculation, crossing detection
* feat(soft-body): tangle recovery: stand-down, expel-only gate and crossing repulsion on crossed pairs
* feat(soft-body): intersection-volume constraints for crossed soft and rigid pairs, self-overlaps and the skin-volume contact model
* feat(soft-body): self-repulsion guided by the fold's volume normal
* feat(soft-body): FEM augmented mass for every constraint, volume elements, a parallel response stage and column responses
* feat(soft-body): tear by force with a smoothed load, per-element resistance, interior strength and damage propagation
* feat(soft-body): plastic flow of the edge rest lengths with yield, creep, cap and direction
* feat(soft-body): tear events and pieces, blade cuts, point and radial impulses, tear-load coloring and 2D demos
* feat(testbed): show the measured frame time and the recent step peak in the performance tab
* feat(soft-body): predictive vertex contacts against convex rigid shapes
* feat(soft-body): measure-preserving particle splits for cracks and cuts, pieces as soft bodies, min-piece setting, rest contact gaps
* feat(soft-body): never split a pinned particle; the testbed draws and grabs the torn-off pieces
* feat(soft-body): stress-based plasticity with rest shapes following the flow, dihedral creases, reset and per-body PGS iterations
* feat(testbed): soft-body stress scenes, cloth on a Keva tower, translucent bins and lighting tweaks
* fix(soft-body): two-sided contacts for open 2D surfaces and per-endpoint interior segment contacts
* fix(testbed): time frames from the renderer's return so vsync waits are left out of the timings
* chore: switch to parry and glamx git dependencies
* chore: switch back to the published version of glamx
* feat(typescript): expose soft bodies in the JS bindings and testbeds
* feat(python): expose soft bodies in the Python bindings and testbed
* docs(website): soft-body examples for the Rust and JS snippets, and the changed pipeline signatures
* chore: switch to parry 0.31
* feat: improve handling of the ORIENTED flag and oriented/shell soft-bodies
* chore: CI fixes
* chore: small demo tweaks
* chore: more CI fixes1 parent d90dd95 commit 28d0ba9
411 files changed
Lines changed: 62681 additions & 935 deletions
File tree
- .github/workflows
- crates
- rapier2d-f64
- rapier2d
- tests
- rapier3d-f64
- rapier3d-mjcf
- src
- tests
- rapier3d
- examples
- tests
- rapier_testbed2d-f64
- rapier_testbed2d
- rapier_testbed3d-f64
- rapier_testbed3d
- examples2d
- stress_tests
- utils
- examples3d
- stress_tests
- python
- docs
- api
- examples/soft
- rapier-py-3d
- python/rapier3d
- src
- rapier-testbed/rapier_testbed
- examples3
- tests
- src_testbed
- graphics
- physics
- testbed
- src
- control
- dynamics
- ccd
- island_manager
- joint/multibody_joint
- soft_body
- collision_mesh
- soft_body_builder
- soft_body_set
- tearing
- solver
- contact_constraint
- joint_constraint
- soft_constraint
- soft_constraints_set
- soft_contact_assembly
- soft_element_constraint
- soft_fem
- system
- staged_island_solver
- geometry
- broad_phase_bvh
- narrow_phase
- soft_contacts
- pipeline
- debug_render_pipeline
- physics_pipeline
- utils
- typescript
- builds/prepare_builds/templates
- src.ts
- dynamics
- geometry
- pipeline
- src
- control
- dynamics
- geometry
- pipeline
- testbed2d/src
- demos
- testbed3d/src
- demos
- website/docs-examples
- 2d
- javascript
- src
- snippets
- rust/examples
- 3d
- javascript
- src
- snippets
- rust/examples
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
310 | 310 | | |
311 | 311 | | |
312 | 312 | | |
313 | | - | |
| 313 | + | |
| 314 | + | |
| 315 | + | |
| 316 | + | |
314 | 317 | | |
315 | 318 | | |
316 | 319 | | |
317 | 320 | | |
318 | 321 | | |
319 | | - | |
320 | | - | |
321 | | - | |
322 | 322 | | |
323 | 323 | | |
| 324 | + | |
| 325 | + | |
| 326 | + | |
| 327 | + | |
| 328 | + | |
| 329 | + | |
| 330 | + | |
| 331 | + | |
| 332 | + | |
| 333 | + | |
| 334 | + | |
| 335 | + | |
| 336 | + | |
| 337 | + | |
324 | 338 | | |
| 339 | + | |
325 | 340 | | |
326 | 341 | | |
| 342 | + | |
327 | 343 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
| 19 | + | |
| 20 | + | |
19 | 21 | | |
20 | 22 | | |
21 | 23 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
66 | 66 | | |
67 | 67 | | |
68 | 68 | | |
69 | | - | |
| 69 | + | |
70 | 70 | | |
71 | 71 | | |
72 | 72 | | |
73 | 73 | | |
74 | 74 | | |
75 | | - | |
76 | | - | |
77 | | - | |
78 | | - | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
79 | 79 | | |
80 | 80 | | |
81 | 81 | | |
| |||
159 | 159 | | |
160 | 160 | | |
161 | 161 | | |
162 | | - | |
163 | | - | |
164 | | - | |
165 | | - | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
166 | 167 | | |
167 | 168 | | |
168 | 169 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
40 | 40 | | |
41 | 41 | | |
42 | 42 | | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
43 | 46 | | |
44 | 47 | | |
45 | 48 | | |
46 | 49 | | |
47 | 50 | | |
48 | 51 | | |
49 | 52 | | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
50 | 60 | | |
51 | 61 | | |
52 | 62 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
40 | 40 | | |
41 | 41 | | |
42 | 42 | | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
43 | 46 | | |
44 | 47 | | |
45 | 48 | | |
| |||
48 | 51 | | |
49 | 52 | | |
50 | 53 | | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
51 | 61 | | |
52 | 62 | | |
53 | 63 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
| 13 | + | |
13 | 14 | | |
14 | 15 | | |
15 | 16 | | |
| |||
26 | 27 | | |
27 | 28 | | |
28 | 29 | | |
| 30 | + | |
29 | 31 | | |
30 | 32 | | |
31 | 33 | | |
| |||
48 | 50 | | |
49 | 51 | | |
50 | 52 | | |
| 53 | + | |
51 | 54 | | |
52 | 55 | | |
53 | 56 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| 11 | + | |
11 | 12 | | |
12 | 13 | | |
13 | 14 | | |
| |||
37 | 38 | | |
38 | 39 | | |
39 | 40 | | |
| 41 | + | |
40 | 42 | | |
41 | 43 | | |
42 | 44 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
| 36 | + | |
| 37 | + | |
36 | 38 | | |
37 | 39 | | |
38 | 40 | | |
39 | 41 | | |
40 | 42 | | |
41 | 43 | | |
42 | 44 | | |
| 45 | + | |
43 | 46 | | |
44 | 47 | | |
45 | 48 | | |
| |||
57 | 60 | | |
58 | 61 | | |
59 | 62 | | |
| 63 | + | |
60 | 64 | | |
61 | 65 | | |
62 | 66 | | |
| |||
80 | 84 | | |
81 | 85 | | |
82 | 86 | | |
| 87 | + | |
83 | 88 | | |
84 | 89 | | |
85 | 90 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
| 14 | + | |
14 | 15 | | |
15 | 16 | | |
16 | 17 | | |
| |||
27 | 28 | | |
28 | 29 | | |
29 | 30 | | |
| 31 | + | |
30 | 32 | | |
31 | 33 | | |
32 | 34 | | |
| |||
48 | 50 | | |
49 | 51 | | |
50 | 52 | | |
| 53 | + | |
51 | 54 | | |
52 | 55 | | |
53 | 56 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
| 15 | + | |
15 | 16 | | |
16 | 17 | | |
17 | 18 | | |
| |||
28 | 29 | | |
29 | 30 | | |
30 | 31 | | |
| 32 | + | |
31 | 33 | | |
32 | 34 | | |
33 | 35 | | |
| |||
49 | 51 | | |
50 | 52 | | |
51 | 53 | | |
| 54 | + | |
52 | 55 | | |
53 | 56 | | |
54 | 57 | | |
| |||
0 commit comments