Hello.
I am trying to create ponytail for my character.
Ponytail consists of 5 bones, not animated with ponytail mesh skinned.
I used rigid bodies, sphere colliders and character joints. First character joint is attached to head rigid-body, second to first ponytail joint rigid-body and so on.
My problem is that ponytail bounces, jiggles and stretches extremely bad. Video showing this is bellow:
What options should I change or add to make it as realistic as possible?
(Haven’t used any coding for this yet)
I want to make everything myself from scratch.
Do you think that using only Unity physics or prefabs like rigidbody,. character joints and colliders will never give a good result?
Currently it is like this. I think it is a bit better. I added “spring” and “contact distance” some values in character joint (they were set to 0 originally).
Why does hair detaches from the connected node like it is attached with weak spring?
If I would use such e.g. in a vehicle for doors, my doors would be flying in air chasing car!
Solved my specific case by removing first character joint, and moving it into parent (head).
Now I need to solve this jerkiness.
It is much better now. Only one collider tough, but the more there are the more jittery chain of joints will appear.
I think whats left to do is to make hair heaver, react to gravity more. Anyone knows how to do that?
Changing mass of rigid body won’t give correct result.
If you want it to react to gravity more, you can just apply extra gravity (ie. down force) in FixedUpdate. Not sure if that’ll work very well, but you could see.
There’s apparently also somebody that’s working on making HairWorks work with Unity. Here’s the thread. And here’s the github.’
Hairworks is what’s used for the hair in eg. the Witcher 3.
I’m putting together a ponytail demo for UMA, and seeing the same hair weirdness. Did you end up using a CharacterJoint? If so, what settings did you end up using? My ponytail is waving around like an octopuses arms.
I didn’t fix it. However, I pushed it to something less buggy, by making only a single collier on the pony tail (one collider on one of the chain of bones in the ponytail). I also discovered that hair will become extremely jerky if at least one of the rigid-bodies in the body will have gravity enabled - seems like a bug to me. And yes I’m using character joints, and one single fixed joint where the ponytail connects to the head. Even if the first bone of the ponytail is the child of the head, I experience ponytail extremely jittery without this fixed joint (which does not hing in theory).
I added picture to explain better. Pony_tail_skeleton_1 - fixed joint to the head, the rest is character joints to parent bones in the ponytail.