Unity Hair Follower Effect

Source: Internet
Author: User

Https://www.2cto.com/kf/201712/707981.html

Goal

To achieve the role of the sleeves, hair, skirt, cloak, tail, etc., in the role of movement, can produce a follow-up effect. Similar to the King Glory role display interface.

Get ready

Using the Unity-chan model to test: https://assetstore.unity.com/packages/3d/characters/unity-chan-model-18705

Springbone

Original: https://rocketjump.skr.jp/unity3d/109/

Revision: Https://github.com/unity3d-jp/unitychan-crs

Learning materials

The elegant hair or ribbon implementation in Unity https://1vr.cn/?p=1922

Unity Dynamic Skeleton Plugin streamer animation based on bone real-time operations https://www.cgjoy.com/thread-181206-1-1.html

"Flowing hair" how to make beautiful hair flowing under the mobile device! "https://gad.qq.com/article/detail/23907

Steps

Put the model into the scene and mount the Springmanager to the model root node as follows:

Parameter description:

    • Dynamic Ratio: Softness, 0-1, smoothness of the current direction of the bone to the target direction

    • Stiffness Force: Overall hardness, smaller like ribbons, bigger like rebar

    • Stiffness Curve: per-node variation of hardness

    • Drag forces: power attenuation, larger and smoother, smaller like multi-stick

    • Drag Curve: Step-by-node change of force

      Add a bone that needs to be involved in the flare springbone script, here is the example of the left hair:

      The node j_l_hairtail_00 is the beginning of the hair, at which point the springbone script is added, the child property is set to the next node, and so on, until the last node J_l_hairtail_ 06, no more scripts to hang.

      Parameter description:

      • Child: Next node

      • Bone Axis: Bone direction

      • Radius: Radius

      • is using each Bone force Settings: whether to use its own settings and not controlled by the manager

      • Colliders: objects that collide

        Now running the drag model, you can see that the hair can move, but it will be interspersed with the body. So to configure the scope of each node may collide, such as the first node j_l_hairtail_00, because near the upper part of the back, will only be interspersed with the back, so as long as the back to add the collision information Script Springcollider , Adjust the radius of the collision to match the back range, and then add this collision information to the J_l_hairtail_00 colliders object, as shown in:

        Other nodes require more collision information, The following hair needs to be dealt with by colliding with the adjacent arm, and the final configuration is completed as follows:

Unity Hair Follower effect

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.