Search Unity

Rigid body ignores box colliders

Discussion in 'Physics' started by moliminous, Jun 13, 2019.

  1. moliminous

    moliminous

    Joined:
    Oct 16, 2015
    Posts:
    70
    So we have a box collider set up it's outside of the model but as you can see it wraps perfectly around it. but for some reason rigid bodies all ignore it, I tried looking up why but can't get an answer as to why that applies.
    pretty much all objects simply fall through the floor.
    amazon box
    https://gyazo.com/11b60cae7cbe1278194434e6cc05a1f0
    table
    https://gyazo.com/3a0ec377aa6ff445883780181bfb22fc
    box collider
    https://gyazo.com/f015e28911ef12e80722aa523e94830e

    any help appreciated.
    i mainly just want my model to be able to toss it around.
     
  2. Vryken

    Vryken

    Joined:
    Jan 23, 2018
    Posts:
    2,106
    Colliders interact with other colliders. You need to add one to the object you wish to collide with.
     
  3. KouroshX98

    KouroshX98

    Joined:
    Feb 8, 2018
    Posts:
    24
    I can't see a box collider on you amazon box,may be that's the problem.
     
  4. moliminous

    moliminous

    Joined:
    Oct 16, 2015
    Posts:
    70
    both do in fact have box colliders I even directly applied them to test. but both are ignored
     
  5. moliminous

    moliminous

    Joined:
    Oct 16, 2015
    Posts:
    70
  6. RidentRaptor

    RidentRaptor

    Joined:
    Apr 11, 2019
    Posts:
    6
    have you tried setting a material to both of the colliders?
     
  7. N_Murray

    N_Murray

    Joined:
    Apr 1, 2015
    Posts:
    98
    Are you applying forces to the box or is it just the default gravity?
     
  8. moliminous

    moliminous

    Joined:
    Oct 16, 2015
    Posts:
    70
    default
     
  9. moliminous

    moliminous

    Joined:
    Oct 16, 2015
    Posts:
    70
    what do materials do?
     
  10. RidentRaptor

    RidentRaptor

    Joined:
    Apr 11, 2019
    Posts:
    6
    They set certain parameters of a collider, like its 'bounciness' and friction upon its surface. There should be a default one already included in unity, and creating your own isn't too difficult either.
     
  11. moliminous

    moliminous

    Joined:
    Oct 16, 2015
    Posts:
    70
    that helped though it turns out there was a mesh collider applied to a wall that stretched across the room. so everything was inside of that causing it to freak out.