With the advent of the new XPBD-based Cloth Dynamics node, we can do a lot of exciting thing with cloth using a far stabler solver. While the Cloth Dynamics node is not finished, as it still lacks self-collisions or interactions with other cloth objects as of Blender 5.3, the principles outlined here will likely be fairly transferable to future versions, as the Cloth Dynamics node and its other accompanying nodes signal Blender’s rapid approaching to a more node-based and customizable simulation workflow closer to Houdini’s.
If you already know how to use the cloth dynamics and collider modifiers, you can skip down to the second section.
Getting to know the nodes
For today’s demonstration, we’ll be using Cosmo! Say hi, Cosmo!




The Cloth Dynamics modifier (and node) can be used by itself when the cloth does not need to interact with anything else, or it can be used with Colliders and other Effectors.
These can be found as Modifiers under the Simulation category in the Add Modifier menu.
The very nice thing about having these modifiers ready for us is that otherwise, we’d need to build the whole setup ourselves! With them ready like this, we can then append them to the scene, and make any further changes we need. Isn’t the Blender foundation nice? Go donate.
By default, the Cloth Dynamics node doesn’t interact with anything, even if you have meshes in your scene that have the Collider modifier. That is because it needs you to define a parameter to determine which colliders to look at. Let’s do that.



With this, provided you also have the Collider modifier in your character’s body, you should be able to begin simulating cloth! There are some small improvements to make first, though. Let’s check the settings on the Cloth Dynamics modifier.

Pin Group and Collision Radius are big ones to consider adjusting. For Pin Group, whatever Vertex Group that matches the name you put here will have its weight determine how pinned the vertices are.
For Cosmo’s case, let’s pin the bottom of his shirt, since it’s supposed to be tucked in his pants.
Let’s also set Collision Radius to 0.003m instead.

Now just change your Pin Group to “Pin”, and you can press play!
So, sure, it was cloth, but like, what the hell, right? That doesn’t look good at all.

This is because the cloth has too little geometry to work with, so why don’t we put 2 levels of Subdivision before the Cloth modifier so it has something to work with? It should look something like this.
Notice the order of modifiers.
First it’s the Armature to pose the character and the cloth, then a Corrective Smooth to help with the deformations, then the Subdivision modifier, and then the Cloth Dynamics modifier. I add a Solidify modifier at the end just so that the cloth looks like it has a little more thickness to it, but this won’t affect the simulation, as it only takes into account what comes before it.
Now let’s try again.
Now THAT is cloth!
So now you know the very basics of how to use the Cloth Dynamics node. This is where we can begin playing around with forces, effectors, and other fun nodes in Geometry Nodes! At the top of your viewport, click on the Geometry Nodes tab.
If you click on either the cloth object or the collider object, and then click anywhere on their cloth/collider modifiers, it’ll bring up the node tree.

Appending and modifying the node trees
In this tab, you can see that the Cloth Dynamics modifier is currently being used as an asset, and we can’t edit anything right now. To edit it, you need to click the bin icon to unpack the node tree and make it local.


So now looking at the node tree, we see how this modifier is constructed.

This section of the node tree comprises the end-point of the various effectors and constraints that go into the XPBD simulation node, the simulation node itself, and then its transformation back to world space and the output of the data.

And now directly to the left of the XPBD node, we see this massive stack of different forces and constraints that are applied to the simulation. We’ve got gravity, pinning, edge length constraints, the collection of effectors, damping, tearing, and bending.
I would leave these alone, since they’re liable to change in the future. What we’re interested right now is the top left of the node tree, where the geometry prep step occurs.

This part is what determines what the cloth mesh looks like before the simulation step occurs. This doesn’t mean it’s something we can only do at the very start of the simulation, but rather changes to the cloth that we can do before the XPBD solver calculates each frame.
This is where we’ll do the first method of shrinking!
Scale Elements Node method

The Scale Elements Node allows us to scale the faces and edges of the object, both all at once, or per axis. For now, let’s keep things simple and just scale everything down all at once.
Set a value of 0.85, and then play the animation.
Now, this IS tighter, for sure. But also it:
- Starts clipped into his body and pops right out.
- Isn’t going to play well with the tearing options either.
Instead, let’s keyframe the factor!


On Frame 0, press the I key to insert a keyframe while hovering over the Scale value. That’ll key frame that specific value.
Move to Frame 48, set Scale down to 0.850, and press I while hovering over it again.
Now let’s press play.
So by scaling the mesh down, it is literally shrinking the distance between all of the vertices, therefore making the cloth tighter. This is pretty good for simulating tight cloth, and then using the tearing option to make it tear on the parts with the most tension.
Custom Force method
For the Custom Force method, instead of doing the work on the cloth mesh, we’ll be using the collider instead! For now, get rid of that Scale Elements Node on the cloth mesh by dissolving it with Shift+X. Now, click on the body object to see the Collider node tree. Unpack it the same way we did with the modifier earlier in the post.


In this modifier, we see a few things. First it converts the mesh to an instance of itself, then it converts its transforms to world space, plugs that into a Typed Bundle (Blender.Collider.Mesh), and then sets the geometry as an effector that can communicate with other simulations.
We can’t mess with the typed bundle because it is by definition a specific named bundle. Plugging anything into the bottom node will just disconnect it upon refresh.
Instead, we’ll use Combine Bundle to add our own custom force!

Here, we used Combine Bundle to keep the previous typed bundle, but add a Custom Force of our choosing.
Custom Forces can be more or less anything, so long as it’s a vector. You could have a noise texture creating various different vectors in random directions, make the force always point in a particular direction, or in our case, use the Normal direction of the collider mesh.
Because this collider is communicating with the cloth simulation, the cloth will react to forces that come from the collider mesh as well!
So now, let’s start at 0.000 on frame 0, and then take that custom force to -50.000 on frame 48 by keyframing both values. Check it out.
With this method, we’ve turned the surface of Cosmo’s body into basically a vacuum! A very strong force in the opposite of the Normal direction is being applied, so the cloth acts as if we were vacuum-sealing something. Definitely a pretty fun method to use, but it has its limitations, since that strong suction force is being constantly applied.
Just for fun, let’s use both methods at the same time.
Using tearing
Now that we can apply some nice tension to the body, we can get some really tight clothes going. That means we can make it tight enough guys can flex out of them 🙂

In the Cloth Dynamics modifier, we can turn the Tearing on, and then play around with the settings. I like setting it to Voronoi, and playing with the size and the threshold (or even keyframing them!) until I get nice big tears in the areas I want.

Another fun trick is going into the node tree, and then taking the Tearing Threshold input, and then multiplying it by an attribute.
For example, I have the vertex groups for the middle of the pec. I can then do some math to make their value small, and then subtract that from the threshold, making that specific area a lot easier to tear!
It’s just a matter of iterating until you get the result you want, but because the XPBD solver is so fast, iteration is way less painful than before!
Check it out.
Now go! Go play with cloth dynamics! Be horny! Flex out of a shirt!!
Leave a Reply