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 do i make it so i cant walk through stuff?

Discussion in 'Physics' started by ProGamingNow, Sep 30, 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.
     
    Harrison1545 likes this.
  2. Polymorphik

    Polymorphik

    Joined:
    Jul 25, 2014
    Posts:
    599
    Question, are the shelves separated? IE they are different objects? or is it all one mesh?
     
  3. ProGamingNow

    ProGamingNow

    Joined:
    Sep 30, 2015
    Posts:
    7
    They all all separate
     
  4. Kiwasi

    Kiwasi

    Joined:
    Dec 5, 2013
    Posts:
    16,860
    Just add one collider to the prefab.
     
  5. JamesLeeNZ

    JamesLeeNZ

    Joined:
    Nov 15, 2011
    Posts:
    5,616
    make an editor script to do it.

    oh wait, you said easier way to do it... ;)
     
    Polymorphik likes this.