Show / Hide Table of Contents

Class vGear_Controller

vGear Controller device.
vGear 控制器裝置。

Inheritance
System.Object
UnityEngine.Object
UnityEngine.Component
UnityEngine.Behaviour
UnityEngine.MonoBehaviour
vCast_Controller
vGear_Controller
Inherited Members
vCast_Controller.defaultTool
vCast_Controller.tools
vCast_Controller.currentTool
vCast_Controller.Pick(vCast_Interactables)
vCast_Controller.Pick()
vCast_Controller.Drop()
vCast_Controller.Grab()
vCast_Controller.Ungrab()
vCast_Controller.AlwaysOnTop(Boolean)
vCast_Controller.RenderQueue(Int32)
vCast_Controller.SetMaxLength(Single)
vCast_Controller.SetNormalColor(Color)
vCast_Controller.SetSelectColor(Color)
vCast_Controller.SetPressColor(Color)
vCast_Controller.SetDisableColor(Color)
vCast_Controller.SetNormalOnTopAlpha(Single)
vCast_Controller.SetSelectOnTopAlpha(Single)
vCast_Controller.SetPressOnTopAlpha(Single)
vCast_Controller.SetDisableOnTopAlpha(Single)
vCast_Controller.EnableWandRay(Boolean)
vCast_Controller.DisplayWandRay(Boolean)
vCast_Controller.SetNormalOutline(Outline)
vCast_Controller.SetSelectOutline(Outline)
vCast_Controller.SetPressOutline(Outline)
vCast_Controller.SetGloveRadius(Single)
vCast_Controller.DisplayGlove(Boolean)
vCast_Controller.SetDetectLayers(Int32[])
vCast_Controller.SetIgnoreLayers(Int32[])
vCast_Controller.ResetTools()
vCast_Controller.ResetTool(Int32)
vCast_Controller.ResetTool(String)
vCast_Controller.ResetRay()
vCast_Controller.GetTool(String)
vCast_Controller.GetTool(Int32)
vCast_Controller.SetTool(String, Boolean)
vCast_Controller.SetTool(Int32, Boolean)
vCast_Controller.SetTool(String)
vCast_Controller.SetTool(Int32)
Namespace: Votanic.vXR.vGear
Assembly: Votanic.vXR.dll
Syntax
[AddComponentMenu("")]
public class vGear_Controller : vCast_Controller

Fields

itemContainer

Current holding item container.
目前持有的物品容器。

Declaration
[Tooltip("Current holding item container.\n目前持有的物品容器。")]
public vGear_ItemContainer itemContainer
Field Value
Type Description
vGear_ItemContainer

Properties

brush

The brush tool of controller.
控制器的畫筆工具。

Declaration
public vGear_Brush brush { get; }
Property Value
Type Description
vGear_Brush

drumStick

The drum stick tool of controller.
控制器的鼓棍工具。

Declaration
public vGear_DrumStick drumStick { get; }
Property Value
Type Description
vGear_DrumStick

glove

The glove tool of controller.
控制器的手套工具。

Declaration
public vGear_Glove glove { get; }
Property Value
Type Description
vGear_Glove

grabbedObject

Grabbed interactables.
被抓握的交互物。

Declaration
public vGear_Interactables grabbedObject { get; }
Property Value
Type Description
vGear_Interactables

magnifier

The magnifier tool of controller.
控制器的放大鏡工具。

Declaration
public vGear_Magnifier magnifier { get; }
Property Value
Type Description
vGear_Magnifier

measurer

The measurer tool of controller.
控制器的測量工具。

Declaration
public vGear_Measurer measurer { get; }
Property Value
Type Description
vGear_Measurer

reporter

The reporter tool of controller.
控制器的報告工具。

Declaration
public vGear_Reporter reporter { get; }
Property Value
Type Description
vGear_Reporter

selectedObject

Selected interactables.
被點選的交互物。

Declaration
public vGear_Interactables selectedObject { get; }
Property Value
Type Description
vGear_Interactables

teleport

The teleport tool of controller.
控制器的傳送工具。

Declaration
public vGear_Teleport teleport { get; }
Property Value
Type Description
vGear_Teleport

triggeredObject

Triggered interactables.
被觸動的交互物。

Declaration
public vGear_Interactables triggeredObject { get; }
Property Value
Type Description
vGear_Interactables

wand

The wand tool of controller.
控制器的操縱桿工具。

Declaration
public vGear_Wand wand { get; }
Property Value
Type Description
vGear_Wand

Methods

GetMovement()

Get the position change of controller from reference point.
取得相對於參考點的控制器位置改變。

Declaration
public Vector3 GetMovement()
Returns
Type Description
UnityEngine.Vector3

GetRotation()

Get the rotation change of controller from reference point.
取得相對於參考點的控制器角度改變。

Declaration
public Vector3 GetRotation()
Returns
Type Description
UnityEngine.Vector3

SetCheckPoint(Transform, Boolean)

Set a check point for getting controller movement and rotation.
設定一個檢查點用於取得控制器的移動及旋轉。

SetCheckPoint(trasform, true)

Declaration
public void SetCheckPoint(Transform transform, bool objectDirection)
Parameters
Type Name Description
UnityEngine.Transform transform

Target object transfrom
目標物件 Transfrom

System.Boolean objectDirection

Apply object direction
使用物件方向

Teleport()

Transform user to teleport point.
將使用者變換到傳送地點。

Declaration
public override void Teleport()
Overrides
vCast_Controller.Teleport()
In This Article
Back to top Generated by DocFX