PDA

View Full Version : Springs: how to reset the rest length?


ottom
02-28-2006, 01:45 AM
Hello,

I have two identical polygonal bodies. These bodies are on the same position but one of them is scaled down.

I am trying to create springs between each particle/vertex of these two bodies. Scaling down does not guarantee, that the distance between particles is the same, thus the MinMax spring creation method sometimes creates additional springs (even if I activate the ‘set exclusive’ option). The geometry of my objects are rather complex and I don’t want to delete unwished springs manually.

I have two ideas how to solve my problem but do not know how to realize it in Maya:

First idea:

Both objects have the same scale. That way the vertices overlap and I can use MinMax with values min=0 and max=0.0001. But if I scale one of the bodies down the simulation will start assuming the rest length = 0 trying to reach it. That means that after scaling the body down I have to reset the ‘per-spring rest length’ somehow – is there any way to do that?


Second idea (more complicated):

Using the option ‘don’t duplicate springs’ I create several spring sets with different MinMax values optimized for different ranges of distances between vertices. Than I would like to merge these springs sets to a single one (with common values for damping, stiffness...). How to do that?

CGTalk Moderation
02-28-2006, 01:45 AM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.