soft_grid2d
The size and the cells of a softbody2d laid out as a grid: a sheet of particles.
本页内容
2d · physics · 2 properties · 2D
The size and the cells of a softbody2d laid out as a grid: a sheet of particles.
In a scene, soft_grid2d is the node key that applies it. A script reaches each property below as a field on node.soft_grid2d: reading one asks the running component, and assigning one leaves the rest alone. The whole table is node.soft_grid2d.get() and node.soft_grid2d.set(table).
Properties
| property | type | default | description |
|---|---|---|---|
cells |
vec2 | [4,4] |
How many cells along each axis of a grid |
size |
vec2 | [1,1] |
Whole size of the sheet |