Grabbing a Handle in XR

<p>In this article, I will discuss grabbing a handle so we can pull open a drawer so we can grab a key that is hidden inside.</p> <p><img alt="" src="https://miro.medium.com/v2/resize:fit:770/1*tJeb6UisuC6qJvTWgTHp0w.png" style="height:533px; width:700px" /></p> <p>To do this, we will be using a&nbsp;<strong>configurable joint</strong>&nbsp;with the drawer. Joints are used to attach different gameobjects in the physics system and constrain them in different ways.&nbsp;<strong>Configurable joints</strong>&nbsp;essentially combine all of the joints into one configurable joint.</p> <p><img alt="" src="https://miro.medium.com/v2/resize:fit:426/1*ZC72Lg89rOVAdYZrvsTTPw.png" style="height:790px; width:387px" /></p> <p>You will notice that the&nbsp;<strong>X and Y motion</strong>&nbsp;is&nbsp;<strong>locked&nbsp;</strong>and the<strong>&nbsp;Z motion</strong>&nbsp;is&nbsp;<strong>limited</strong>. This is so that we can open the drawer in only one direction and only up to a certain point.</p> <p>The limit is configured within the&nbsp;<strong>Linear Limit</strong>&nbsp;settings.</p> <p><a href="https://medium.com/@eveciana21/grabbing-a-handle-in-xr-9b4d2039c1d4"><strong>Click Here</strong></a></p>
Tags: Handle XR