Guides
These docs are for v3.2.0. Click to read the latest docs for v3.3.0.

VRTK_CustomJointGrabAttach

extends VRTK_BaseJointGrabAttach

Overview

The Custom Joint Grab Attach script allows a custom joint to be provided for the grab attach mechanic.

The custom joint is placed on the interactable object and at runtime the joint is copied into a JointHolder game object that becomes a child of the interactable object.

The custom joint is then copied from this JointHolder to the interactable object when a grab happens and is removed when a grab ends.

Inspector Parameters

  • Custom Joint: The joint to use for the grab attach joint.

Example

VRTK/Examples/021_Controller_GrabbingObjectsWithJoints demonstrates this grab attach mechanic on the Lamp object in the scene.