Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice
  3. Join us on November 16th, 2023, between 1 pm and 9 pm CET for Ask the Experts Online on Discord and on Unity Discussions.
    Dismiss Notice

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,848
    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:
    813
    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