Class vGear_Controller
vGear Controller device.
vGear 控制器裝置。
Inheritance
Inherited Members
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 |
System.Boolean | objectDirection | Apply object direction |
Teleport()
Transform user to teleport point.
將使用者變換到傳送地點。
Declaration
public override void Teleport()