soft_rope2d
Where a softbody2d laid out as a rope runs, and how many particles it is made of.
في هذه الصفحة
2d · physics · 3 properties · 2D
Where a softbody2d laid out as a rope runs, and how many particles it is made of.
In a scene, soft_rope2d is the node key that applies it. A script reaches each property below as a field on node.soft_rope2d: reading one asks the running component, and assigning one leaves the rest alone. The whole table is node.soft_rope2d.get() and node.soft_rope2d.set(table).
Properties
| property | type | default | description |
|---|---|---|---|
a |
vec2 | [0,0] |
Where a rope starts, relative to the node |
b |
vec2 | [0,-1] |
Where a rope ends, relative to the node |
particle_count |
int | 16 |
How many particles a rope is made of At least 2. |