Search Unity

How to make it so i cant walk through objects?

Discussion in 'Getting Started' started by ProGamingNow, Oct 1, 2015.

  1. ProGamingNow

    ProGamingNow

    Joined:
    Sep 30, 2015
    Posts:
    7
    Hi i have been putting shelf's in my shop but in order to not walk through them i have had to add box collides but this is taking alot of time to do and i was just wondering if there is an easier way to do it.The shelfs are all separate.

    PLEASE HELP THANKS. btw i know i can do box colliders but they take a long time is there a quicker way that i can do it?
     
  2. JoeStrout

    JoeStrout

    Joined:
    Jan 14, 2011
    Posts:
    9,859
    Nope, box colliders are absolutely the quickest type of collider to create.

    However, maybe you're putting a collider on each individual shelf... I would think that one for the whole unit (set of shelves) would suffice.
     
    ProGamingNow likes this.
  3. jhocking

    jhocking

    Joined:
    Nov 21, 2009
    Posts:
    814
    If these are imported objects then you can give it a Mesh Collider instead, to automatically wrap colliders around your mesh. But really I'm mystified as to how you can think box colliders take a long time to setup. If you think that process is too onerous for you, uh I'm not sure you have the patience needed to develop an entire game.
     
  4. ProGamingNow

    ProGamingNow

    Joined:
    Sep 30, 2015
    Posts:
    7
    No its not that its just i thought there might be a easier way which is the main reason i posted
     
  5. ProGamingNow

    ProGamingNow

    Joined:
    Sep 30, 2015
    Posts:
    7
    Thank You very much.I will do that.
     
  6. tedthebug

    tedthebug

    Joined:
    May 6, 2015
    Posts:
    2,570
    If all the shelves are the same then make one shelf with a box collider & prefab it. Then use the prefabs & scale each one as needed once it is in the scene. It's quicker than making & adding collides to each shelf.
     
    MurDocINC likes this.
  7. ProGamingNow

    ProGamingNow

    Joined:
    Sep 30, 2015
    Posts:
    7
    Thankyou very much
     
  8. ProGamingNow

    ProGamingNow

    Joined:
    Sep 30, 2015
    Posts:
    7
    dude thank you so much this is so much easier your a legend