Search Unity

  1. Unity 2019.2 is now released.
    Dismiss Notice

Should walls be made from cubes or planes?

Discussion in 'Getting Started' started by LumoKvin, Nov 7, 2019.

  1. LumoKvin

    LumoKvin

    Joined:
    Sep 28, 2019
    Posts:
    75
    Should walls be made from cubes or planes?
     
  2. Antypodish

    Antypodish

    Joined:
    Apr 29, 2014
    Posts:
    6,171
    Depends.
    In most cases you can achieve same result with either.
    However, if you use thicker walls, like cubes, it is easier to deal with collisions of faster moving objects.
     
    Joe-Censored likes this.
  3. LumoKvin

    LumoKvin

    Joined:
    Sep 28, 2019
    Posts:
    75
    With a plane, I can still make the box collider thick. Would a cube still be better for collisions in that case?
     
  4. Antypodish

    Antypodish

    Joined:
    Apr 29, 2014
    Posts:
    6,171
    No. It just gives you visual feedback, of wall/collider thickness.
     
    Joe-Censored likes this.
  5. Joe-Censored

    Joe-Censored

    Joined:
    Mar 26, 2013
    Posts:
    6,692
    The mesh the player sees actually has nothing to do with the physics interaction of the collider, unless you're using the same mesh as a mesh collider. Though the game would be unplayable, from the physics side you could make walls just with colliders without cubes or planes at all (obviously difficult to navigate if the player can only feel the walls but not see them).