This site has been archived and remains strictly as a historical reference for developers who actively maintain apps built using the legacy Google VR SDK, which was last updated in 2019 and is no longer receiving updates.
  • All developers actively developing experiences for Google Cardboard should use the new open source Cardboard SDKs for iOS, Android NDK, and Unity XR Plugin. These new SDKs offer streamlined APIs, improved device compatibility, and built-in viewer profile QR code scanning.
  • The Daydream View VR headset is no longer available for purchase as of October 15, 2019. Existing apps on supported devices are unaffected for users who previously installed those applications. It is no longer possible to opt-in to Daydream distribution via Google Play.

GvrBaseArmModel

Interface for a mathematical Arm model for 3DoF controllers.

Summary

Uses the orientation and location of the physical controller, and predicts the location of the controller and pointer to determine where to place the controller model within the scene.

Inheritance

Inherits from: MonoBehaviour
Direct Known Subclasses:GvrArmModel

Properties

ControllerPositionFromHead
abstract Vector3
Gets a Vector to represent the controller's location relative to the player's head position.
ControllerRotationFromHead
abstract Quaternion
Gets a Quaternion to represent the controller's rotation relative to the player's head position.
PreferredAlpha
abstract float
Gets the suggested rendering alpha value of the controller.
TooltipAlphaValue
abstract float
Gets the suggested rendering alpha value of the controller tooltips.

Properties

ControllerPositionFromHead

abstract Vector3 ControllerPositionFromHead

Gets a Vector to represent the controller's location relative to the player's head position.

A Vector to represent the controller's location.

ControllerRotationFromHead

abstract Quaternion ControllerRotationFromHead

Gets a Quaternion to represent the controller's rotation relative to the player's head position.

A Quaternion to represent the controller's rotation.

PreferredAlpha

abstract float PreferredAlpha

Gets the suggested rendering alpha value of the controller.

This is to prevent the controller from intersecting the player's face.

The range is always 0 - 1.

The suggested rendering alpha value of the controller.

TooltipAlphaValue

abstract float TooltipAlphaValue

Gets the suggested rendering alpha value of the controller tooltips.

This is to only display the tooltips when the player is looking at the controller, and also to prevent the tooltips from intersecting the player's face.

The suggested rendering alpha value of the controller tooltips.