Jump to content

How to use spring constraint network for packed prims?


magneto

Recommended Posts

Hi,

 

I don't know if I should be using packed prims as an input for Connect Adjacent Pieces or if I should unpack before? I thought the constraints should be between the packed prim locations/pivots, but I have seen both approaches.

 

Also unlike the Glue network constraint Spring constraint DOP doesn't allow for -1 strength. Is there a way to make it so that the springs are unbreakable by the simulation?

 

I attached a file and as you can see the pieces start falling immediately.

 

 

Thanks :)

constnetwork.hip

Link to comment
Share on other sites

yes you can unpack first if you want to consider their geometry while generating constraints, like connecting surface points rather than centroids

the constraints will carry over only the name of the RBD, so even if you unpack them for the purpose of creating constraints, your sim can still be using packed RBDs and constraints will bind to them properly using name, considering it's unique

 

as far as strength goes, spring constraints are not breakable (unless you are deleting them based on their properties on something), Strength is just their strength, so if you want "infinite" strength use Glue or Hard and  switch to Spring whenever you want, look at SpringToGlue example in the help for inspiration on how to switch constraint types on the fly

you can as well do that per constraint based on it's properties like force, distance, etc.

Edited by anim
  • Like 1
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...