forked from hunterzonewu/unity-decompiled
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathAccelerationEvent.cs
More file actions
41 lines (38 loc) · 1.03 KB
/
AccelerationEvent.cs
File metadata and controls
41 lines (38 loc) · 1.03 KB
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
35
36
37
38
39
40
41
// Decompiled with JetBrains decompiler
// Type: UnityEngine.AccelerationEvent
// Assembly: UnityEngine, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null
// MVID: A8FF7A2C-E4EE-4232-AB17-3FCABEC16496
// Assembly location: C:\Users\Blake\sandbox\unity\test-project\Library\UnityAssemblies\UnityEngine.dll
namespace UnityEngine
{
/// <summary>
/// <para>Structure describing acceleration status of the device.</para>
/// </summary>
public struct AccelerationEvent
{
private float x;
private float y;
private float z;
private float m_TimeDelta;
/// <summary>
/// <para>Value of acceleration.</para>
/// </summary>
public Vector3 acceleration
{
get
{
return new Vector3(this.x, this.y, this.z);
}
}
/// <summary>
/// <para>Amount of time passed since last accelerometer measurement.</para>
/// </summary>
public float deltaTime
{
get
{
return this.m_TimeDelta;
}
}
}
}