Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hair teleport and reset #28

Open
methusalah opened this issue Nov 25, 2022 · 1 comment
Open

Hair teleport and reset #28

methusalah opened this issue Nov 25, 2022 · 1 comment
Labels
enhancement New feature or request

Comments

@methusalah
Copy link

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.

@fuglsang fuglsang added the enhancement New feature or request label Nov 29, 2022
@fuglsang
Copy link
Collaborator

Labeling as feature request.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants