Skip to content

Search

Documentatie

soft_volumetric2d

How a volumetric softbody2d fills its mesh's outline with triangles. The soft_volumetric2d component of the Balaur game engine: its 2 properties, and the…

Op deze pagina

2d · physics · 2 properties · 2D

How a volumetric softbody2d fills its mesh's outline with triangles.

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

Properties

property type default description
cell_size float 0.25 How big one triangle is when a volumetric body fills an outline; smaller is finer, slower and stiffer to tear At least 0.001.
min_angle float 0.5235988 The smallest corner a volumetric body's triangles aim for; past 30 degrees the fill may not finish. Radians in the file Range 0–30.