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

VR Simulator CameraRig

Overview

The VRSimulatorCameraRig prefab is a mock Camera Rig set up that can be used to develop with VRTK without the need for VR Hardware.

Use the mouse and keyboard to move around both play area and hands and interacting with objects without the need of a hmd or VR controls.

Inspector Parameters

  • Hide Hands At Switch: Hide hands when disabling them.
  • Reset Hands At Switch: Reset hand position and rotation when enabling them.
  • Hand Move Multiplier: Adjust hand movement speed.
  • Hand Rotation Multiplier: Adjust hand rotation speed.
  • Player Move Multiplier: Adjust player movement speed.
  • Player Rotation Multiplier: Adjust player rotation speed.
  • Change Hands: Key used to switch between left and righ hand.
  • Hands On Off: Key used to switch hands On/Off.
  • Rotation Position: Key used to switch between positional and rotational movement.
  • Change Axis: Key used to switch between X/Y and X/Z axis.
  • Trigger Alias: Key used to simulate trigger button.
  • Grip Alias: Key used to simulate grip button.
  • Touchpad Alias: Key used to simulate touchpad button.
  • Button One Alias: Key used to simulate button one.
  • Button Two Alias: Key used to simulate button two.
  • Start Menu Alias: Key used to simulate start menu button.
  • Touch Modifier: Key used to switch between button touch and button press mode.
  • Hair Touch Modifier: Key used to switch between hair touch mode.

Class Methods

FindInScene/0

public static GameObject FindInScene()

  • Parameters
  • none
  • Returns
  • GameObject - Returns the found VRSimulatorCameraRig GameObject if it is found. If it is not found then it prints a debug log error.

The FindInScene method is used to find the VRSimulatorCameraRig GameObject within the current scene.