Search Unity

Question How to prevent players from looking through walls? XR Toolkit

Discussion in 'XR Interaction Toolkit and Input' started by LuigiNicastro, Jan 6, 2021.

  1. LuigiNicastro

    LuigiNicastro

    Joined:
    Feb 7, 2018
    Posts:
    34
    I was wondering if the XR Toolkit has anything built in that would allow me to stop my players from physically putting their heads through the walls? If not, does anyone have any solutions that I can apply to my project? I have already worked out a script that does a fade to black but it's not perfect but would also prefer to be able to physically stop them from looking through. Any help is appreciated!
     
  2. mfuad

    mfuad

    Unity Technologies

    Joined:
    Jun 12, 2018
    Posts:
    335
  3. LuigiNicastro

    LuigiNicastro

    Joined:
    Feb 7, 2018
    Posts:
    34
    @mfuad You have no idea how amped and excited I am to finally find a solution. Thank you and @chris-massie !!!
     
    mfuad likes this.