Report as inappropriate.
This is an early state of my soft body physics. It uses my physicslActor class to use collision physics on the corners. The edges are dampened springs. If the springs deform too much, they will deform and not return to their initial length. Stiffness, damping and deformation can all be adjusted.
Collisions between objects are going to be a thing, too, but the collisions are not quite there, yet.
Use the arrow keys to move the one box around. Press space to toggle debug mode. If it’s freaking out: well, too bad FPS;-)
The higher the framerate, the smoother the softness works, and the stiffer the springs can be.
By the way: it runs smoother in the greenfoot application. I‘m getting 450+ FPS on my crappy laptop.
2277 views / 1365 in the last 7 days
3 votes | 1 in the last 7 days
This scenario is a member of: UNiTy iN NeEd