forked from MattRix/UnityDecompiled
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathInputTracking.cs
More file actions
34 lines (29 loc) · 899 Bytes
/
InputTracking.cs
File metadata and controls
34 lines (29 loc) · 899 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
using System;
using System.Runtime.CompilerServices;
namespace UnityEngine.VR
{
public static class InputTracking
{
public static Vector3 GetLocalPosition(VRNode node)
{
Vector3 result;
InputTracking.INTERNAL_CALL_GetLocalPosition(node, out result);
return result;
}
[WrapperlessIcall]
[MethodImpl(MethodImplOptions.InternalCall)]
private static extern void INTERNAL_CALL_GetLocalPosition(VRNode node, out Vector3 value);
public static Quaternion GetLocalRotation(VRNode node)
{
Quaternion result;
InputTracking.INTERNAL_CALL_GetLocalRotation(node, out result);
return result;
}
[WrapperlessIcall]
[MethodImpl(MethodImplOptions.InternalCall)]
private static extern void INTERNAL_CALL_GetLocalRotation(VRNode node, out Quaternion value);
[WrapperlessIcall]
[MethodImpl(MethodImplOptions.InternalCall)]
public static extern void Recenter();
}
}