Trying a different approach
We have implemented a first version of a jelly simulation by following a tutorial and tried it out on some basic shapes. They are not quite behaving as we want though so we will have to do some tweaking to see if we can get it to work out. As seen in the gif, the sphere is wobbling nicely while the cylinder seems quite stiff.
Generating and manipulating a cube mesh from vertices.
We have started exploring the possibility of manipulating a cube mesh using a spring-damper system. Today we have managed to create a cube mesh using a Vector3 array of vertices and an integer array of points describing triangles (polygons). Since in Unity every vertex in a cube (8 vertices) consists of 3 points (one for each face-normal), we had to find which three points correspond to which indexes in the vertex array. Last but not least, we also tried manipulating one of two of the cubes vertices using a sinus function updating both the cube mesh and the mesh-collider to see if it worked as we intended. Which it did! 🎉
Jell-O!
We will hopefully simulate some fancy bouncy jelly cubes. We are quite worried to say the least.