How do I add a 2D SoftBody physics effect? (How do I make my slimes squishy?)
-
Hi Everyone!
I'm trying to get aquainted with all of the nice physics features in GoDot. Currently I want to make a squishy slime character based on a 2D sprite and I've been checking out different tutorials and guides. Note that I am still very much learning the basics in GoDot here but do have a background in programming.
I found:
Another example:
https://anonymousxcv.itch.io/softbody-2d
And source.
Note all the sources/examples are not made by me and credits go to the respective creators/owners.But when I try to import /convert to the newest version it seems to break a lot of stuff. The balls are not affected by gravity for one.
If I try to recreate the same configuration based o the video my sprite does not seem to be affected by all of the bones/springs but rather either ignore them entirely by falling through everything or be attached to only one of the bone/spring/rigidBody objects.
Does anyone have a working example I can copy/steal/learn from? Or any advice on why it doesn't work in the new version directly?
I want to squish this guy!
Any help would be greatly appreciated :D! Thank you!
-
You can check out this softbody 2D plugin https://godotengine.org/asset-library/asset/1621
-
@Salodo Awesome, thank you! Will try it out.
-
It worked perfectly. After a little tweaking my squishy little slime is bouncing all around.