Class VRPNTracker
The tracker class of VRPN.
VRPN 定位器類別。
Inherited Members
Namespace: Votanic.vIO.VRPN
Assembly: Votanic.vIO.dll
Syntax
[Serializable]
public class VRPNTracker : Tracker
Constructors
VRPNTracker(String, String, Int32, TrackerDirection, TrackerDirection, TrackerDirection)
Declare a VRPN tracker.
宣告一個 VRPN 定位器。
Declaration
public VRPNTracker(string name, string address, int channel, TrackerDirection forward, TrackerDirection up, TrackerDirection right)
Parameters
Type | Name | Description |
---|---|---|
System.String | name | Name of tracker |
System.String | address | Address of tracker |
System.Int32 | channel | Channel of tracker |
TrackerDirection | forward | Forward axis direction of tracker |
TrackerDirection | up | Up axis direction of tracker |
TrackerDirection | right | Right axis direction of tracker |
Methods
Accessible()
Return true if the tracker is accessible.
當定位器可讀取時傳回 true。
Declaration
public override bool Accessible()
Returns
Type | Description |
---|---|
System.Boolean |
Overrides
Position()
Get the position of tracker in system.
取得系統中的定位器位置。
Declaration
public override Vector3 Position()
Returns
Type | Description |
---|---|
UnityEngine.Vector3 |
Overrides
Rotation()
Get the rotation of tracker in system.
取得系統中的定位器旋轉。
Declaration
public override Quaternion Rotation()
Returns
Type | Description |
---|---|
UnityEngine.Quaternion |