# How could I make this dynamic ?

## Recommended Posts

Hi ! I'm a beginner of Houdini and I have no idea how could I make this...

If Box on top is moving front, back, left or right, Tube and sphere has to be moved too.

but the Tube has to move like wire(or something like a rope) and so sphere attached at end of the wire.

Like this image, bulb attached to rope and rope attached behind of celling.

I did some ways to make it, used pin constraint and spring constraint but I don't know how could I attach those objects.

If you help me, I will be my big big pleasure !

Thank you for read and sorry for my poor English.

Have a good weekends !!

bullet-bulb-industry-ceiling-pendant-with-black-cord_1427692337841.webp

##### Share on other sites

You can use a simple wire solver with pintoanimation attribute. I have attached an example file. Cheers!

wire_solve.hipnc

##### Share on other sites

Really good solution yonglegend.

If u want to push it a bit further, how could u control the mass of the sphere? I mean, now is moving like a really light one, what if its a concrete or iron ball?

Cheers and thanks!

##### Share on other sites

You could create a density point attribute prior to sending it to dops. Set the density for the bottom point separate to the rest of the wire. Drop a point wrangle with something like,

f@density = 1;
if(@ptnum == 0) f@density = 1000;

You can play with the normal and tangent drag too. Can help make it more restrained and less bouncy.

##### Share on other sites
7 hours ago, macj89 said:

Really good solution yonglegend.

If u want to push it a bit further, how could u control the mass of the sphere? I mean, now is moving like a really light one, what if its a concrete or iron ball?

Cheers and thanks!

If you want more control, you could always switch to constraints. As Adrian mentioned, density will control the mass and you can even introduce collision. Cheers!

wire_solve.hipnc

## Create an account

Register a new account