
Publisher
ughuuu
SoftBody2D 2D
A SoftBody2D is defined by a set of RigidBody2Ds and Joint2Ds used to simulate it and a Skeleton2D used to deform the texture. You can create multiple types of softbodies with this plugin, such as: - Bouncy softbody - Breakable/Deformable softbody - Softbody with hole
Documentation | Discord
2D squishy softbodies for the Godot game engine.
Adds the SoftBody2D node which creates a set of RigidBody2Ds and Joint2Ds used with a Skeleton2D in order to deform the texture.
Installation
- Automatic (Recommended): Download the plugin from the official Godot Asset Store using the
AssetLib
tab in Godot. - Manual: Download the source code and move only the addons folder into your project addons folder.
Features
You can create multiple types of softbodies with this plugin, such as:
- Bouncy SoftBody2D
- Breakable/Deformable SoftBody2D
- SoftBody2D with Hole
How this plugin creates a softbody
Create polygon from texture around edge.
Optionally do the same for hole texture.
Create multiple regions of same size around polygon.
Delete the regions the polygon or inside the hole polygon.
Creates a
Skeleton2D
child. Creates a set ofBone2D
nodes of theSkeleton2D
, each having a region and assign correct weights to them.Creates a set of
RigidBody2D
nodes, one for each region with aCollisionShape2D
child, aRemoteTransform2D
child that targets the corespondingBone2D
position, and a set ofJoint2D
children that connect neighbouring rigidbodies. Also for eachBone2D
node, make it lookat another neighbour node.When the joint length is too big, the joints breaks. Then, the weights for both bones are updated to no longer have weights in the other region.