This site has been permanently archived. The content on this site was last updated in 2019.
Stay organized with collections
Save and categorize content based on your preferences.
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.
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.
All rights reserved. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-10-09 UTC.
[null,null,["Last updated 2024-10-09 UTC."],[[["\u003cp\u003eGvrBaseArmModel is an interface used for creating a 3DoF controller mathematical Arm model for determining the in-scene placement of a controller.\u003c/p\u003e\n"],["\u003cp\u003eIt utilizes the physical controller's orientation and location and anticipates the controller and pointer's location to position the model accurately.\u003c/p\u003e\n"],["\u003cp\u003eDevelopers can access properties like \u003ccode\u003eControllerPositionFromHead\u003c/code\u003e, \u003ccode\u003eControllerRotationFromHead\u003c/code\u003e, \u003ccode\u003ePreferredAlpha\u003c/code\u003e, and \u003ccode\u003eTooltipAlphaValue\u003c/code\u003e to customize the controller's rendering and behavior.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003ePreferredAlpha\u003c/code\u003e and \u003ccode\u003eTooltipAlphaValue\u003c/code\u003e help in adjusting the controller and tooltip transparency to enhance user experience and prevent visual obstructions.\u003c/p\u003e\n"]]],["The GvrBaseArmModel interface defines a mathematical model for 3DoF controllers, predicting their location and pointer within a scene. It uses the physical controller's orientation and location to determine where to place the model. Key properties include `ControllerPositionFromHead` (a Vector for the controller's location), `ControllerRotationFromHead` (a Quaternion for rotation), `PreferredAlpha` (suggested controller rendering alpha), and `TooltipAlphaValue` (suggested alpha for tooltips), ensuring proper visual representation.\n"],null,["# GvrBaseArmModel Class Reference\n\nGvrBaseArmModel\n===============\n\nInterface for a mathematical Arm model for 3DoF controllers.\n\nSummary\n-------\n\nUses 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.\n\n### Inheritance\n\nInherits from: MonoBehaviour \nDirect Known Subclasses:[GvrArmModel](/vr/reference/unity/class/GvrArmModel)\n\n| ### Properties ||\n|----------------------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------|\n| [ControllerPositionFromHead](#classGvrBaseArmModel_1a82fd12c6d4e7b4d5d18601edfdeb3934) | `abstract Vector3` Gets a Vector to represent the controller's location relative to the player's head position. |\n| [ControllerRotationFromHead](#classGvrBaseArmModel_1a1a306fd2e937e34f24576189e9e0d298) | `abstract Quaternion` Gets a Quaternion to represent the controller's rotation relative to the player's head position. |\n| [PreferredAlpha](#classGvrBaseArmModel_1add872d29b3d3bdc9ba59adef49898ba7) | `abstract float` Gets the suggested rendering alpha value of the controller. |\n| [TooltipAlphaValue](#classGvrBaseArmModel_1ae4608a21cd1879061cefc45667627b33) | `abstract float` Gets the suggested rendering alpha value of the controller tooltips. |\n\nProperties\n----------\n\n### ControllerPositionFromHead\n\n```c#\nabstract Vector3 ControllerPositionFromHead\n``` \nGets a Vector to represent the controller's location relative to the player's head position.\n\nA Vector to represent the controller's location. \n\n### ControllerRotationFromHead\n\n```c#\nabstract Quaternion ControllerRotationFromHead\n``` \nGets a Quaternion to represent the controller's rotation relative to the player's head position.\n\nA Quaternion to represent the controller's rotation. \n\n### PreferredAlpha\n\n```c#\nabstract float PreferredAlpha\n``` \nGets the suggested rendering alpha value of the controller.\n\nThis is to prevent the controller from intersecting the player's face.\n\nThe range is always 0 - 1.\n\nThe suggested rendering alpha value of the controller. \n\n### TooltipAlphaValue\n\n```c#\nabstract float TooltipAlphaValue\n``` \nGets the suggested rendering alpha value of the controller tooltips.\n\nThis 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.\n\nThe suggested rendering alpha value of the controller tooltips."]]