{"_id":"5b1f90df56942b0003484946","project":"571fa55ca0acd42000af9545","version":{"_id":"5b1f8576c2505d00031254db","project":"571fa55ca0acd42000af9545","__v":4,"forked_from":"594949e52be16d0026ec04cd","createdAt":"2017-06-20T16:14:29.816Z","releaseDate":"2017-06-20T16:14:29.816Z","categories":["5b1f8576c2505d0003125424","5b1f8576c2505d0003125425","5b1f8576c2505d0003125426","5b1f8576c2505d0003125427","5b1f8576c2505d0003125428","5b1f8576c2505d0003125429","5b1f8576c2505d000312542a","5b1f8576c2505d000312542b","5b1f8576c2505d000312542c","5b1f8576c2505d000312542d","5b1f8576c2505d000312542e","5b1f8576c2505d000312542f","5b1f8576c2505d0003125430","5b1f8576c2505d0003125431","5b1f8576c2505d0003125432","5b1f8576c2505d0003125433","5b1f8576c2505d0003125434","5b1f8576c2505d0003125435","5b1f8576c2505d0003125436","5b1f8576c2505d0003125437","5b1f8576c2505d0003125438","5b1f8aab9c683000032979e7","5b1f8b2f3073470003ffa5da","5b1f8bd9fd653400031d94f4","5b1f900bd4c5f000036b57bd"],"is_deprecated":false,"is_hidden":false,"is_beta":false,"is_stable":true,"codename":"Mangalica","version_clean":"3.3.0","version":"3.3.0"},"category":{"_id":"5b1f900bd4c5f000036b57bd","project":"571fa55ca0acd42000af9545","version":"5b1f8576c2505d00031254db","__v":0,"sync":{"url":"","isSync":false},"reference":false,"createdAt":"2018-06-12T09:19:07.462Z","from_sync":false,"order":6,"slug":"interactors","title":"Interactors"},"user":"571fa519db52d01700f5cf3d","githubsync":"","__v":0,"parentDoc":null,"updates":[],"next":{"pages":[],"description":""},"createdAt":"2018-06-12T09:22:39.176Z","link_external":false,"link_url":"","sync_unique":"","hidden":false,"api":{"results":{"codes":[]},"settings":"","auth":"required","params":[],"url":""},"isReference":false,"order":6,"body":"> extends VRTK_SDKControllerReady\n\n## Overview\n\nProvides a controller collider collection that follows the controller rigidbody via the physics system.\n\n**Required Components:**\n * `VRTK_InteractTouch` - An Interact Touch script to determine which controller rigidbody to follow.\n\n**Optional Components:**\n * `VRTK_ControllerEvents` - The events component to listen for the button presses on. This must be applied in the same object hierarchy as the Interact Touch script if one is not provided via the `Controller Events` parameter.\n\n**Script Usage:**\n * Place the `VRTK_ControllerTrackedCollider` script on any active scene GameObject except the Script Alias objects.\n * Assign the controller to track by applying an Interact Touch to the relevant Script Alias and then providing that reference to the `Interact Touch` parameter on this script.\n\n## Inspector Parameters\n\n * **Interact Touch:** The Interact Touch script to relate the tracked collider to.\n * **Max Resnap Distance:** The maximum distance the collider object can be from the controller before it automatically snaps back to the same position.\n * **Activation Button:** The button to press to activate the colliders on the tracked collider set. If `Undefined` then it will always be active.\n * **Controller Events:** An optional Controller Events to use for listening to the button events. If this is left blank then it will attempt to be retrieved from the same controller as the `Interact Touch` parameter.\n\n## Class Methods\n\n### ToggleColliders/1\n\n  > `public virtual void ToggleColliders(bool state)`\n\n * Parameters\n   * `bool state` - If `true` then the tracked colliders will be able to affect other Rigidbodies.\n * Returns\n   * _none_\n\nThe ToggleColliders method toggles the collision state of the tracked colliders.\n\n### TrackedColliders/0\n\n  > `public virtual Collider[] TrackedColliders()`\n\n * Parameters\n   * _none_\n * Returns\n   * `Collider[]` - A Collider array of the tracked colliders.\n\nThe TrackedColliders method returns an array of the tracked colliders.","excerpt":"","slug":"vrtk_controllertrackedcollider","type":"basic","title":"VRTK_ControllerTrackedCollider"}

VRTK_ControllerTrackedCollider


> extends VRTK_SDKControllerReady ## Overview Provides a controller collider collection that follows the controller rigidbody via the physics system. **Required Components:** * `VRTK_InteractTouch` - An Interact Touch script to determine which controller rigidbody to follow. **Optional Components:** * `VRTK_ControllerEvents` - The events component to listen for the button presses on. This must be applied in the same object hierarchy as the Interact Touch script if one is not provided via the `Controller Events` parameter. **Script Usage:** * Place the `VRTK_ControllerTrackedCollider` script on any active scene GameObject except the Script Alias objects. * Assign the controller to track by applying an Interact Touch to the relevant Script Alias and then providing that reference to the `Interact Touch` parameter on this script. ## Inspector Parameters * **Interact Touch:** The Interact Touch script to relate the tracked collider to. * **Max Resnap Distance:** The maximum distance the collider object can be from the controller before it automatically snaps back to the same position. * **Activation Button:** The button to press to activate the colliders on the tracked collider set. If `Undefined` then it will always be active. * **Controller Events:** An optional Controller Events to use for listening to the button events. If this is left blank then it will attempt to be retrieved from the same controller as the `Interact Touch` parameter. ## Class Methods ### ToggleColliders/1 > `public virtual void ToggleColliders(bool state)` * Parameters * `bool state` - If `true` then the tracked colliders will be able to affect other Rigidbodies. * Returns * _none_ The ToggleColliders method toggles the collision state of the tracked colliders. ### TrackedColliders/0 > `public virtual Collider[] TrackedColliders()` * Parameters * _none_ * Returns * `Collider[]` - A Collider array of the tracked colliders. The TrackedColliders method returns an array of the tracked colliders.