Announcements

Starting in December, we will archive content from the community that is 10 years and older. This FAQ provides more information.

Community
Maya Animation and Rigging
Welcome to Autodesk’s Maya Forums. Share your knowledge, ask questions, and explore popular Maya animation topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Rope simulation with nHair and IKSpline...

2 REPLIES 2
SOLVED
Reply
Message 1 of 3
RPYTHON
587 Views, 2 Replies

Rope simulation with nHair and IKSpline...

Im try to make dynamic simulation of a skeletal cord with nHair and IKSpline. Set up the skeleton, make curve dynamic, turn "BothEnds" on follicleShape1... in short, the classic way. But one end of the cord does not stick to the controller and just falls down. Why is this happening and how to fix it?

 

Example in .ma (Maya 2019.3) below.

Tags (3)
Labels (3)
2 REPLIES 2
Message 2 of 3
Kahylan
in reply to: RPYTHON

Hi!

 

What is happening is not that the end falls to the floor, the spline just stretches a lot.

 

Put the attribute "Stretch Resistance"  on your HairSystem Node to a really high value, for example 10000.

Also you are moving your chain really fast. In dynamics, units are always calculated as meters, so if you move your hand from 0 to 54.4 in 54 frames, that means your hand is moving at a speed of 1m/f -> 24m/s -> 86.7 km/h and it really rapidly accelerates to that speed. This automatically streches your rope during acceleration, so in order to prevent that, you also need to up your attribute "Stretch Damp" by quite a lot (probably also 10000).

 

This will slow down your playback considerably, but it should eliminate the stretching almost entirely.

 

But I would consider to switch your work units to meters and make your arm something like 1 long instead of 40. Then you can also use lower numbers in your physics calculations.

 

Also I would apply a unified squash/stetch to all the joints in the dynamic part of the chain, that allows to let the chain to dynamically squash and stretch without looking weird in the driven mesh.

 

I hope it helps!

Message 3 of 3
RPYTHON
in reply to: Kahylan

Most part of the problem really was in a working units. I scaled skeleton to cm and simulation started working exactly as it should after setting stretch resistance.
Thank you sir!

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report