3
$\begingroup$

I tried using softbody physics on a path, but, the path then behaves like a string rather than a stiff tube. I want the pneumatic tube to behave something like the tubes in this: https://www.youtube.com/watch?v=klLI5skuwj4

$\endgroup$
7
+50
$\begingroup$

You can use a cloth simulation for this.

enter image description here

Scene Setup

To begin with, I added a simple bezier curve, then edited and beveled it. I then converted it to a mesh object, and built the other simple cuboid mesh object you can see in the pictures.

Next, go into edit mode on the curve (now a mesh), and select the ending vertices to setup a vertex group to pin them. Add a new vertex group and assign these verts to it.

enter image description here

Parent the curve to the cuboid mesh (that means the curve mesh becomes the child of the other), and add a cloth simulation in the physics tab of the properties panel.

Note: All of the above should be trivial, but if you need more information, let me know.

Cloth Simulation Setup

  1. I disabled everything in the cloth settings except for pinned vertex group.

enter image description here

  1. I started with the "leather" preset, as I felt that was closest to the desired physics settings.

  2. The quality steps is not super important to keep high, but will be noticeable if set low (e.g., below 5).

  3. If the speed multiplier is set lower, things look more like string (they move faster); if set high, it looks more like the desired tubing (I used a value of 3 in the demo).

  4. Make sure to setup the vertex group for pinned verts by enabling "pinning" and then setup a vertex group (assign the vertices that are on the edges of the tube) for it.

  5. I decreased the "bending" relative to the leather preset. As the tooltip says, it basically sets the size of the waves: higher is bigger, lower is smaller.

  6. I increased the "structural" stiffness factor because the tubing has a more stiff overall stiffness than leather would.

  7. I decreased the "spring" damping from 25 to 15, because I wanted a bit more jiggling when I did the shake animation.

  8. I increased the "air" damping to slow it down further. This seems to behave similarly to the "multiplier" setting, although the values are entirely different.

$\endgroup$
  • $\begingroup$ Can you explain each thing you changed and what it does? $\endgroup$ – 10 Replies Nov 23 '16 at 13:43
  • $\begingroup$ @10Replies Yes, I will. Just waiting for my gif making tool to finish :-| $\endgroup$ – JakeD Nov 23 '16 at 14:00
  • $\begingroup$ @10Replies Please see my updated answer. $\endgroup$ – JakeD Nov 23 '16 at 14:50
-1
$\begingroup$

please find a blend file with a rigged cable under this link:

https://www.dropbox.com/s/abactz3bu7olldv/Rigged_Cable.blend?dl=0

It may suit your needs. It uses the cloth simulation technique as well, but the solution is extended using a set of hook modifiers. If you do so, the circular cross shape of the cable (or tube) will not get lost at collisions. regarding on the number of hooks you set, the more accurate your simulation will be.

regards,

pixelpoems.de

$\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.