Softbody Playground on Roblox
"Have you ever seen a squishy cube in Roblox?"
"Now that I think about it, no."
"Well now you will."
What is This?
Softbody Playground is a small project I started on the 10th of October in 2020. Over several years of playing Roblox, I noticed there was not a single game that had any sort of softbody physics simulation. Thusly, I knew it to be my mission to make the first squishy block on all of Roblox. This game gives players the ability to create their own softbody and change several properties of it from colors to bounciness and even the shape. The environment is pretty empty, consisting only of a large slide, a crushing machine, and a trampoline.

The softbody itself is formed from small nodes attached to adjacent nodes via springs, causing a strange wireframe appearance. As I was an intermediate programmer when I created this, I did not know how to optimize the softbody, and this led to some lag if one had too many nodes in their softbody. Nonetheless, this was a large learning step in my career and I am glad I went forward with this idea.
​
You can play Softbody Playground on Roblox now!
The following code snippet shows the current version of the code that puts together the softbody. After the nodes have been placed where they need to be, this part attaches each adjacent node with a spring. One small issue that my past self managed to cover is that the code would not have recognized if a node is already attached to another, placing two springs where there should be only one. On top of that, I will forever be grateful that I always made sure to organize and properly indent my code.
