Search Unity

  1. Improved Prefab workflow (includes Nested Prefabs!), 2D isometric Tilemap and more! Get the 2018.3 Beta now.
    Dismiss Notice
  2. The Unity Pro & Visual Studio Professional Bundle gives you the tools you need to develop faster & collaborate more efficiently. Learn more.
    Dismiss Notice
  3. Let us know a bit about your interests, and if you'd like to become more directly involved. Take our survey!
    Dismiss Notice
  4. Don't miss out on the Unite LA Keynote for the latest information from Unity! Set a reminder!
    Dismiss Notice
  5. Improve your Unity skills with a certified instructor in a private, interactive classroom. Watch the overview now.
    Dismiss Notice
  6. Want to see the most recent patch releases? Take a peek at the patch release page.
    Dismiss Notice

mesh collider wont work without convex??

Discussion in 'Physics' started by alexchandriyaa, Feb 5, 2018.

  1. alexchandriyaa

    alexchandriyaa

    Joined:
    Jan 18, 2017
    Posts:
    140
    is there any way to use mesh colliders without convex?
     
  2. Antony-Blackett

    Antony-Blackett

    Joined:
    Feb 15, 2011
    Posts:
    1,132
    What are you trying to achieve?
     
  3. AndersMalmgren

    AndersMalmgren

    Joined:
    Aug 31, 2014
    Posts:
    2,955
    For rigidbodies no, you should avoid mesh colliders all together on dynamic objects.
     
  4. alexchandriyaa

    alexchandriyaa

    Joined:
    Jan 18, 2017
    Posts:
    140
    am trying to do buzz wire game.. for that i have created mesh collider and rigidbody for hoop, for wire i have created few box colliders without rigidbody am using ontrigger for detecting if hoop hits wire the cube has to change its color to black but here even the hoop not hit the wire it is changing


    public void OnTriggerEnter(Collider col)
    {
    cubeColor.material.color = new Color (0, 0, 0, 0);
    }
    public void OnTriggerExit()
    {
    Debug.Log ("Exit");
    cubeColor.material.color = origi;
    }

    Capture2.PNG
     
  5. N1warhead

    N1warhead

    Joined:
    Mar 12, 2014
    Posts:
    3,282
    Why are you double posting?
    Why not use the last thread from yesterday?
     
  6. AndersMalmgren

    AndersMalmgren

    Joined:
    Aug 31, 2014
    Posts:
    2,955
    Look into Obi rope. Rigidbodies are not very suited for this kind of simulation. We use it in our game.



    edit: Since that video was taken I have lowered the amount of particles and lowered gravity which make the ropes a little more cable/wire like. But still not a perfect simulation of wires. But ok

    edirt: ah S***, you want none plastic wires :D The ring should be able to be roughly represented with capsule colliders. The wire should also be able to use capsule colliders, or maybe mesh collider if its static. But mesh colliders often create unstable results when colliding with rigidbodis
     
    Last edited: Feb 5, 2018
  7. Chrisasan

    Chrisasan

    Joined:
    Mar 27, 2015
    Posts:
    255
    There is a script in the unit3d asset store that would allow you to get your results. It will simulate a mesh collider by using convex colliders. I have forgotten the name of it. There is more than one.
     
  8. coolbird22

    coolbird22

    Joined:
    Mar 20, 2014
    Posts:
    38
    Do you remember the name of the script ?
     
  9. ertanturan

    ertanturan

    Joined:
    Nov 19, 2016
    Posts:
    11