Struct LinearAccelerationSensor
Use the accelerometer to measure the acceleration of a device. It reports the acceleration measured on a device due to moving the device around, without gravity effect. Use Acceleration property (float3) to get acceleration values. Values are affected by the InputSystem.CompensateForScreenOrientation setting.
Namespace: Unity.Tiny.Input
Syntax
public struct LinearAccelerationSensor : IComponentData
Fields
Acceleration
Declaration
public float3 Acceleration
Field Value
| Type | Description |
|---|---|
| float3 |
LastUpdateTime
Declaration
public TimeData LastUpdateTime
Field Value
| Type | Description |
|---|---|
| TimeData |