|
Engine²
Open-source game engine written in C++.
|
Create a volumetric jelly cube entity for soft body simulation.
Create a volumetric jelly cube entity for soft body simulationCreates a 3D grid of vertices (gridSize³ total) with surface faces for rendering. Unlike CreateCube (which has only surface vertices), this creates internal vertices needed for volumetric soft body simulation ("jelly" effect).
The spacing between vertices is automatically calculated as: size / (gridSize - 1)
| core | Engine core reference |
| info | Parameters for creating the jelly cube (size, gridSize, position, rotation, scale) |
a 2-unit jelly cube with 5x5x5 grid: