Skip to content

Search

Dokumentasi

soft_custom2d

The particles and elements of a custom softbody2d, as the author lists them.

Di halaman ini

2d · physics · 5 properties · 2D

The particles and elements of a custom softbody2d, as the author lists them.

In a scene, soft_custom2d is the node key that applies it. A script reaches each property below as a field on node.soft_custom2d: reading one asks the running component, and assigning one leaves the rest alone. The whole table is node.soft_custom2d.get() and node.soft_custom2d.set(table).

Properties

property type default description
bend_edge_indices list [] A custom body's bending edges, each a pair of particle indices
cell_indices list [] A custom body's triangles, three particle indices each, counter-clockwise
edge_indices list [] A custom body's structural edges, each a pair of particle indices; empty takes the cells' edges
points list [] The particles of a custom body, relative to the node
surface_indices list [] A custom body's outward boundary segments, each a pair of particle indices: what holds its area and what it collides through; empty takes the cells' boundary