Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice

Resolved I want to fold paper in Unity

Discussion in 'Animation' started by unity_VkIpMcSEFpSXZg, Apr 22, 2023.

  1. unity_VkIpMcSEFpSXZg

    unity_VkIpMcSEFpSXZg

    Joined:
    Jan 4, 2023
    Posts:
    3
    I am trying to double fold the paper made in the blender but it is not working. The first fold is successful, but in the second fold, Bourne is working alone and the mesh is not following. .blender and .fbx files attached.

    upload_2023-4-22_19-17-21.png

    upload_2023-4-22_19-17-37.png

    What would I need to do in Unity to fix this? I don't have a lot of Blender animation experience, so a simple explanation for a 5 year old would be great:oops:
     

    Attached Files:

    • fbx.zip
      File size:
      117.1 KB
      Views:
      44
  2. ElXill

    ElXill

    Joined:
    Jun 2, 2017
    Posts:
    43
    I don't really like solving problems like this but this one is a lot harder to explain than done also you need to make it work to explain it.
    You need a bone for all the moving vertices of the mesh for folding it 2 times. Your rig setup was wrong in regard placement of bones and hierarchy and it was too simplistic. Even with a good setup 4 bones would not give you the expected results in these conditions, they would cause a lot of unwanted bending.
    So here it is, I hope you would not just readly use it in your project without checking it first.
     

    Attached Files:

    unity_VkIpMcSEFpSXZg and tsukimi like this.
  3. unity_VkIpMcSEFpSXZg

    unity_VkIpMcSEFpSXZg

    Joined:
    Jan 4, 2023
    Posts:
    3
    thanks for your kind reply. I really understood everything and actually managed to fold it twice. And I realized that this gets very complicated as the number of bends increases.
     
    ElXill likes this.
  4. icauroboros

    icauroboros

    Joined:
    Apr 30, 2021
    Posts:
    103
    you could try using shape keys instead of rigging maybe
     
  5. unity_VkIpMcSEFpSXZg

    unity_VkIpMcSEFpSXZg

    Joined:
    Jan 4, 2023
    Posts:
    3
    Yeah, I have tried the shape key as well, but it makes the fold uncomfortable to move more than 90 degrees because it takes the shortest path.:(