Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Any way to increase box collider resistance?

Discussion in 'Physics' started by Eidoggg, Dec 11, 2018.

  1. Eidoggg

    Eidoggg

    Joined:
    Feb 7, 2018
    Posts:
    5
    After many unsuccessful attempts at making a chain in 3d, I finally made a semi-working chain by making a square frame outline model in unity and adding box colliders to each side. The whole thing makes up one chain link. It works and looks good but it keeps breaking apart, when provoked by another rigidbody.. I can't find a solution to this. The box colliders shouldn't go through each other but they do, when enough force is applied.
    I am wondering if there's any way to increase the box colliders resistance so they wouldn't clip through each-other, or if you know any way to make a strong rigidbody chain, please tell me :) .


    https://imgur.com/a/eBpgzCm
     
  2. Antypodish

    Antypodish

    Joined:
    Apr 29, 2014
    Posts:
    10,754
    You shouldn't use direct RigidBody with collides, to make a chain.
    You can use instead joints.
    Or there are some assets, which allow you to make a rope like. So perhaps using these, you can make chain.
     
  3. Eidoggg

    Eidoggg

    Joined:
    Feb 7, 2018
    Posts:
    5
    I tried joints but the joints drifted apart when they moved (so no chain, because the chain links would move in and out of each other)
     
  4. Antypodish

    Antypodish

    Joined:
    Apr 29, 2014
    Posts:
    10,754
    Then dig for some assets. And adapt the to needs.
    Unless you know how to code the rope for example.