{"_id":"594949e62be16d0026ec04f8","category":{"_id":"594949e62be16d0026ec04da","version":"594949e52be16d0026ec04cd","project":"571fa55ca0acd42000af9545","__v":0,"sync":{"url":"","isSync":false},"reference":false,"createdAt":"2017-01-01T17:04:07.774Z","from_sync":false,"order":12,"slug":"3d-controls","title":"3D Controls"},"project":"571fa55ca0acd42000af9545","user":"571fa519db52d01700f5cf3d","parentDoc":null,"version":{"_id":"594949e52be16d0026ec04cd","project":"571fa55ca0acd42000af9545","__v":2,"createdAt":"2017-06-20T16:14:29.816Z","releaseDate":"2017-06-20T16:14:29.816Z","categories":["594949e62be16d0026ec04ce","594949e62be16d0026ec04cf","594949e62be16d0026ec04d0","594949e62be16d0026ec04d1","594949e62be16d0026ec04d2","594949e62be16d0026ec04d3","594949e62be16d0026ec04d4","594949e62be16d0026ec04d5","594949e62be16d0026ec04d6","594949e62be16d0026ec04d7","594949e62be16d0026ec04d8","594949e62be16d0026ec04d9","594949e62be16d0026ec04da","594949e62be16d0026ec04db","594949e62be16d0026ec04dc","594949e62be16d0026ec04dd","594949e62be16d0026ec04de","594949e62be16d0026ec04df","594949e62be16d0026ec04e0","594949e62be16d0026ec04e1","59497219f4a8980024dd0631"],"is_deprecated":false,"is_hidden":false,"is_beta":false,"is_stable":true,"codename":"Kunekune","version_clean":"3.2.0","version":"3.2.0"},"__v":0,"updates":[],"next":{"pages":[],"description":""},"createdAt":"2017-01-01T17:06:12.866Z","link_external":false,"link_url":"","githubsync":"","sync_unique":"","hidden":false,"api":{"settings":"","results":{"codes":[]},"auth":"required","params":[],"url":""},"isReference":false,"order":3,"body":"> extends [VRTK_Control](doc:vrtk_control)\n\n## Overview\n\nTransforms a game object into a chest with a lid. The direction can be auto-detected with very high reliability or set manually.\n\nThe script will instantiate the required Rigidbody, Interactable and HingeJoint components automatically in case they do not exist yet. It will expect three distinct game objects: a body, a lid and a handle. These should be independent and not children of each other.\n\n## Inspector Parameters\n\n * **Direction:** The axis on which the chest should open. All other axis will be frozen.\n * **Lid:** The game object for the lid.\n * **Body:** The game object for the body.\n * **Handle:** The game object for the handle.\n * **Content:** The parent game object for the chest content elements.\n * **Hide Content:** Makes the content invisible while the chest is closed.\n * **Max Angle:** The maximum opening angle of the chest.\n\n## Example\n\n`VRTK/Examples/025_Controls_Overview` shows a chest that can be open and closed, it also displays the current opening angle of the chest.","excerpt":"","slug":"vrtk_chest","type":"basic","title":"VRTK_Chest"}
> extends [VRTK_Control](doc:vrtk_control) ## Overview Transforms a game object into a chest with a lid. The direction can be auto-detected with very high reliability or set manually. The script will instantiate the required Rigidbody, Interactable and HingeJoint components automatically in case they do not exist yet. It will expect three distinct game objects: a body, a lid and a handle. These should be independent and not children of each other. ## Inspector Parameters * **Direction:** The axis on which the chest should open. All other axis will be frozen. * **Lid:** The game object for the lid. * **Body:** The game object for the body. * **Handle:** The game object for the handle. * **Content:** The parent game object for the chest content elements. * **Hide Content:** Makes the content invisible while the chest is closed. * **Max Angle:** The maximum opening angle of the chest. ## Example `VRTK/Examples/025_Controls_Overview` shows a chest that can be open and closed, it also displays the current opening angle of the chest.