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

VRTK_Knob

extends VRTK_Control

Overview

Attaching the script to a game object will allow the user to interact with it as if it were a radial knob. The direction can be freely set.

The script will instantiate the required Rigidbody and Interactable components automatically in case they do not exist yet.

Inspector Parameters

  • Connected To: An optional game object to which the knob will be connected. If the game object moves the knob will follow along.
  • Direction: The axis on which the knob should rotate. All other axis will be frozen.
  • Min: The minimum value of the knob.
  • Max: The maximum value of the knob.
  • Step Size: The increments in which knob values can change.

Example

VRTK/Examples/025_Controls_Overview has a couple of rotator knobs that can be rotated by grabbing with the controller and then rotating the controller in the desired direction.