Click or drag to resize

GCControllerDualShock4ExtensionGetAccelerometerValue Method

Gets the value from the accelerometer converted to Unity's coordinate system. The value returned could be thought of as a gravity vector and user acceleration combined. If using this value to apply a force in the direction of the vector, invert each axis first. This value represents the last value reported by the accelerometer.

Namespace: Rewired.Platforms.Apple.GameController
Assemblies:  Rewired_AppleGameController (in Rewired_AppleGameController.dll) Version: 1.0.0+e8257758c3446d922301bab0e4637a0e5ec1862f
  Rewired_OSX (in Rewired_OSX.dll) Version: 1.0.0+e8257758c3446d922301bab0e4637a0e5ec1862f
Syntax
C#
public Vector3 GetAccelerometerValue()

Return Value

Vector3
Accelerometer data

Implements

IDualShock4ExtensionGetAccelerometerValue
See Also