scripts
This commit is contained in:
@@ -0,0 +1,170 @@
|
||||
using System;
|
||||
using UnityEngine.Scripting;
|
||||
|
||||
namespace UnityEngine.VR
|
||||
{
|
||||
// Token: 0x020002F5 RID: 757
|
||||
[UsedByNativeCode]
|
||||
public struct VRNodeState
|
||||
{
|
||||
// Token: 0x17000B0D RID: 2829
|
||||
// (get) Token: 0x06003119 RID: 12569 RVA: 0x000497EC File Offset: 0x000479EC
|
||||
// (set) Token: 0x0600311A RID: 12570 RVA: 0x00049808 File Offset: 0x00047A08
|
||||
public ulong uniqueID
|
||||
{
|
||||
get
|
||||
{
|
||||
return this.m_UniqueID;
|
||||
}
|
||||
set
|
||||
{
|
||||
this.m_UniqueID = value;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17000B0E RID: 2830
|
||||
// (get) Token: 0x0600311B RID: 12571 RVA: 0x00049814 File Offset: 0x00047A14
|
||||
// (set) Token: 0x0600311C RID: 12572 RVA: 0x00049830 File Offset: 0x00047A30
|
||||
public VRNode nodeType
|
||||
{
|
||||
get
|
||||
{
|
||||
return this.m_Type;
|
||||
}
|
||||
set
|
||||
{
|
||||
this.m_Type = value;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17000B0F RID: 2831
|
||||
// (get) Token: 0x0600311D RID: 12573 RVA: 0x0004983C File Offset: 0x00047A3C
|
||||
// (set) Token: 0x0600311E RID: 12574 RVA: 0x0004985C File Offset: 0x00047A5C
|
||||
public bool tracked
|
||||
{
|
||||
get
|
||||
{
|
||||
return this.m_Tracked == 1;
|
||||
}
|
||||
set
|
||||
{
|
||||
this.m_Tracked = ((!value) ? 0 : 1);
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17000B10 RID: 2832
|
||||
// (set) Token: 0x0600311F RID: 12575 RVA: 0x00049874 File Offset: 0x00047A74
|
||||
public Vector3 position
|
||||
{
|
||||
set
|
||||
{
|
||||
this.m_Position = value;
|
||||
this.m_AvailableFields |= AvailableTrackingData.PositionAvailable;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17000B11 RID: 2833
|
||||
// (set) Token: 0x06003120 RID: 12576 RVA: 0x0004988C File Offset: 0x00047A8C
|
||||
public Quaternion rotation
|
||||
{
|
||||
set
|
||||
{
|
||||
this.m_Rotation = value;
|
||||
this.m_AvailableFields |= AvailableTrackingData.RotationAvailable;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17000B12 RID: 2834
|
||||
// (set) Token: 0x06003121 RID: 12577 RVA: 0x000498A4 File Offset: 0x00047AA4
|
||||
public Vector3 velocity
|
||||
{
|
||||
set
|
||||
{
|
||||
this.m_Velocity = value;
|
||||
this.m_AvailableFields |= AvailableTrackingData.VelocityAvailable;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17000B13 RID: 2835
|
||||
// (set) Token: 0x06003122 RID: 12578 RVA: 0x000498BC File Offset: 0x00047ABC
|
||||
public Vector3 acceleration
|
||||
{
|
||||
set
|
||||
{
|
||||
this.m_Acceleration = value;
|
||||
this.m_AvailableFields |= AvailableTrackingData.AccelerationAvailable;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x06003123 RID: 12579 RVA: 0x000498D8 File Offset: 0x00047AD8
|
||||
public bool TryGetPosition(out Vector3 position)
|
||||
{
|
||||
return this.TryGet<Vector3>(this.m_Position, AvailableTrackingData.PositionAvailable, out position);
|
||||
}
|
||||
|
||||
// Token: 0x06003124 RID: 12580 RVA: 0x000498FC File Offset: 0x00047AFC
|
||||
public bool TryGetRotation(out Quaternion rotation)
|
||||
{
|
||||
return this.TryGet<Quaternion>(this.m_Rotation, AvailableTrackingData.RotationAvailable, out rotation);
|
||||
}
|
||||
|
||||
// Token: 0x06003125 RID: 12581 RVA: 0x00049920 File Offset: 0x00047B20
|
||||
public bool TryGetVelocity(out Vector3 velocity)
|
||||
{
|
||||
return this.TryGet<Vector3>(this.m_Velocity, AvailableTrackingData.VelocityAvailable, out velocity);
|
||||
}
|
||||
|
||||
// Token: 0x06003126 RID: 12582 RVA: 0x00049944 File Offset: 0x00047B44
|
||||
public bool TryGetAcceleration(out Vector3 acceleration)
|
||||
{
|
||||
return this.TryGet<Vector3>(this.m_Acceleration, AvailableTrackingData.AccelerationAvailable, out acceleration);
|
||||
}
|
||||
|
||||
// Token: 0x06003127 RID: 12583 RVA: 0x00049968 File Offset: 0x00047B68
|
||||
private bool TryGet<T>(T inValue, AvailableTrackingData availabilityFlag, out T outValue) where T : new()
|
||||
{
|
||||
bool flag;
|
||||
if (this.m_Tracked == 1 && (this.m_AvailableFields & availabilityFlag) > AvailableTrackingData.None)
|
||||
{
|
||||
outValue = inValue;
|
||||
flag = true;
|
||||
}
|
||||
else
|
||||
{
|
||||
outValue = new T();
|
||||
flag = false;
|
||||
}
|
||||
return flag;
|
||||
}
|
||||
|
||||
// Token: 0x040009C8 RID: 2504
|
||||
private VRNode m_Type;
|
||||
|
||||
// Token: 0x040009C9 RID: 2505
|
||||
private AvailableTrackingData m_AvailableFields;
|
||||
|
||||
// Token: 0x040009CA RID: 2506
|
||||
private Vector3 m_Position;
|
||||
|
||||
// Token: 0x040009CB RID: 2507
|
||||
private Quaternion m_Rotation;
|
||||
|
||||
// Token: 0x040009CC RID: 2508
|
||||
private Vector3 m_Velocity;
|
||||
|
||||
// Token: 0x040009CD RID: 2509
|
||||
private Quaternion m_AngularVelocity;
|
||||
|
||||
// Token: 0x040009CE RID: 2510
|
||||
private Vector3 m_Acceleration;
|
||||
|
||||
// Token: 0x040009CF RID: 2511
|
||||
private Quaternion m_AngularAcceleration;
|
||||
|
||||
// Token: 0x040009D0 RID: 2512
|
||||
private int m_Tracked;
|
||||
|
||||
// Token: 0x040009D1 RID: 2513
|
||||
private ulong m_UniqueID;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user