Unity-Technologies/com.unity.demoteam.hair

Hair teleport and reset

methusalah opened this issue · 1 comments

I often need to teleport my characters, for example in cut scenes.

When moving the HairInstance object or parent, the hair simulation behaves like the character was moving very fast from point A to point B. The hair bounces back in position.

Is it possible to reset or teleport the hair somehow?

I found that we can disable/re-enable the HairInstance to reset the hair. This "solution" has issues:

  • it's not elegant, and it's not documented (the former may explain the latter ^^),
  • the hair is not drawn for one frame,
  • the hair is reset in its original local position (sometimes I want the hair being teleported as-is to preserve the current shape and/or animation, or prevent depenetration bounce).

If it's not possible, then it would be sweet to have a little documentation about how to reset the hair (I spent quite some time to find the disable/enable trick), and even better to be able to teleport the hair as-is, with its local shape and velocities.

Labeling as feature request.