Giving the Player a Body — VR

<p>If you&rsquo;ve been following along and have popped your headset on, you may have noticed that we can walk through all of the objects in the scene. If you&rsquo;re wondering why this is happening, it is because we don&rsquo;t have a body!</p> <p>To add collision to the XR Origin, we have to add a collider! I know, it seems obvious, however, it goes a bit further than just adding a simple box collider. If we went that route, walking into things may make the player fall over then you&rsquo;d be stuck on the ground. We don&rsquo;t want that now, do we?</p> <p>What we&rsquo;ll add to the XR Origin is a Character Controller. We can add that by adding a new Component in the Inspector.</p> <p><img alt="" src="https://miro.medium.com/v2/resize:fit:253/1*bo0_wb6IubL2-5cgii-D5Q.png" style="height:315px; width:230px" /></p> <p>There&rsquo;s a bit more to it than that though. If you&rsquo;ve tried the game out at this point, you may be extremely tall in your game. We could make adjustments to where you may want the height to be, but Unity has provided a simplified method for this task.</p> <p><a href="https://medium.com/@kennethmclachlan11/giving-the-player-a-body-vr-cce109a2dbb5"><strong>Website</strong></a></p>
Tags: Player Body