Search Unity

  1. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Question Mesh Collider Animation

Discussion in 'Animation' started by Mr_Packer12, May 1, 2023.

  1. Mr_Packer12

    Mr_Packer12

    Joined:
    Aug 11, 2022
    Posts:
    30
    I made a mesh collider for this zombie character in blender by duplicating the model and just converting the duplication to a mesh. However as you can see in the picture the mesh stays in the original t-pose despite the model moving around. How do you set it up so that the mesh moves with the character? Thank you. Untitled design (68).jpg
     
  2. DevDunk

    DevDunk

    Joined:
    Feb 13, 2020
    Posts:
    4,865
    Mesh colliders are not for realtime generation. That sucks for performance. Use capsule colliders on bones instead
     
    tsukimi and Mr_Packer12 like this.
  3. TSRajesh

    TSRajesh

    Joined:
    Jun 19, 2013
    Posts:
    69
    You understood it wrong. Mesh collider is fixed. Doesn't change shape / animate.
    Maybe you want to add a collider in each limb / bone.. Either way, Performance would suck big time.
     
    Mr_Packer12 likes this.
  4. Mr_Packer12

    Mr_Packer12

    Joined:
    Aug 11, 2022
    Posts:
    30
    Yeah you guys are correct. I added colliders to the limbs and that works fine. Can't speak to performance yet since it is just one model, but we'll see when I implement that in my actual game.
     
    DevDunk likes this.