PDA

View Full Version : ncloth constrain question


grossoftimage
01-24-2007, 09:01 PM
can create distance activated constraints using the max conection distance and per frame update our glue?

thamks bye

Duncan
01-24-2007, 10:58 PM
If you key any constraint attributes that affect the constraint's link formation, like maxDistance, connectionMethod, or the enable flag then it will rebuild the links based on the current position. Thus you could key the enable flag on to pick up an object with the constraint, for example. The moment the constrain was enabled links would get created within the max distance and their rest lengths would be based on that point.

The glueStrength allows links to break such that they don't later reform. However glue links can be rejoined by animating the glue strength to exactly 1 (the rest lengths will still be from the original link, however)

It is also possible to create constraints that are sticky based on distance. One way is to make the restLengthScale 0, the dropoff distance small, and the strengthDropoff ramp such that it is zero on the right. You could also create a force field constraint and make the force negative.

Duncan

CGTalk Moderation
01-24-2007, 10:58 PM
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.