Question by
SuperNovaXM · Feb 09, 2017 at 03:48 PM ·
collisionvr
VR/Vive - Prevent Player From Walking Through Walls?
I have seen VR games that prevent players from walking through walls by stopping all movement if they try, so I was wondering if there was an easy way to do this using colliders or a Character Controller.
Comment
Answer by mirotticesar · Apr 18, 2018 at 02:28 PM
It's not complicated if you use a gameobject attached to camera (eye) with a collider, and move the camera rig in the inverse direction when the collision with the tagged object (like a wall, closed door) is done. I'm bad in C# so i can't help you, but i have the same problem.