Search Unity

Question 3D player goes through walls

Discussion in 'Physics' started by lazy90poitu241, Oct 18, 2021.

  1. lazy90poitu241

    lazy90poitu241

    Joined:
    Jul 13, 2018
    Posts:
    3
    Hello there.

    I recently have this problem. So basically the player (3D cube) goes through the walls which is a boundary. That is not what I want. I want the player to stay within the walls no matter what. I applied a box collider to the walls including the floor. I suspect the other cubes interfere with the player with force. Please refer to the video below. Any help / tip relating to this issue will help a ton. Thanks!

    Objects
    - Player Property (Box collider : is trigger = true)
    - Walls including floor Property (Box collider : is trigger = false)

    Video
    -
     
  2. arfish

    arfish

    Joined:
    Jan 28, 2017
    Posts:
    782