soft_collision2d
A mesh the node's softbody2d meets the world through beside its own surface, deformed with the body: its triangles in 3D, the outline of its triangles in…
Pe această pagină
2d · physics · 3 properties · 2D
A mesh the node's softbody2d meets the world through beside its own surface, deformed with the body: its triangles in 3D, the outline of its triangles in 2D.
In a scene, soft_collision2d is the node key that applies it. A script reaches each property below as a field on node.soft_collision2d: reading one asks the running component, and assigning one leaves the rest alone. The whole table is node.soft_collision2d.get() and node.soft_collision2d.set(table).
Properties
| property | type | default | description |
|---|---|---|---|
collision_binding |
variant | {"distance":0.01,"kind":"nearest"} |
How the mesh follows the body: each vertex on the nearest particle, vertex i on particle i, or riding the cell that holds it, so a coarse cage of cells can carry a fine mesh |
collision_mesh |
asset · mesh |
— | The mesh, in the node's space |
collision_self_contacts |
bool | false |
Let the mesh collide with itself |
Asset types this component references: mesh.