0
\$\begingroup\$

I want to implement soft bodies in my game similar to this link.

I tried using this Soft body simulation plugin but it has the following problems:

  1. Only works with box colliders.
  2. Doesn’t work with Unity’s physics engine i.e. the bodies don’t react to the forces applied.

For my game,

  1. The soft bodies should be able to collide and interact with any types of colliders (including mesh collider).
  2. The bodies should work with Unity’s physics engine i.e. the bodies should react to the forces and gravity applied.

I am flexible in implementing soft bodies in 2D or 3D.

I would appreciate any suggestions and thoughts on this topic.

\$\endgroup\$
5
  • \$\begingroup\$ Usually these are implemented as a whole bunch of small colliders spaced-apart by springs. What kinds of shapes do you need for your game? \$\endgroup\$ – DMGregory Oct 23 '20 at 12:33
  • \$\begingroup\$ Thank you for your reply. I need very basic shapes like cube, sphere, and cone. \$\endgroup\$ – Naresh Oct 23 '20 at 12:37
  • \$\begingroup\$ @DMGregory can you share any tutorial or articles demonstrating your suggestions? \$\endgroup\$ – Naresh Oct 25 '20 at 7:06
  • 1
    \$\begingroup\$ Just the ones I'm sure you've already found by putting those words into a search engine. \$\endgroup\$ – DMGregory Oct 25 '20 at 12:18
  • \$\begingroup\$ Thank you @DMGregory. I was able to find tutorials for the approach discussed by you. \$\endgroup\$ – Naresh Oct 27 '20 at 13:28
0
\$\begingroup\$

The 3D soft bodies can be implemented using spring joints and mesh bones. Assign spring joint to each bone and connect it to all the other bones.

Tutorial link: https://www.youtube.com/watch?v=tTdKEJpX2HI&feature=youtu.be&t=1088

\$\endgroup\$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.