This script allows the HTC VIVE controllers to hold and release virtual objects on contact.
The user can hold objects by resting their thumb on the right-hand touchpad.
The gun object will snap to the proper angle while held, thanks to the second script.