Export (0) Print
Expand All

KinectSensor.AccelerometerGetCurrentReading Method

Kinect for Windows 1.5, 1.6, 1.7, 1.8

Gets a four-component vector that points in the direction of gravity.

public Vector4 AccelerometerGetCurrentReading ()

Return Value

Type: Vector4
A four-component vector that points in the direction of gravity.

The accelerometer reading is returned as a 3d vector pointing in the direction of gravity (the floor on a non-accelerating sensor). The vector is in gravity units (g), or 9.81m/s^2. The right-handed coordinate system is centered on the sensor with positive z in the direction the sensor is pointing. In the default sensor rotation (horizontal, level placement), this will return the vector (0, -1.0, 0, 0). The w value of the Vector4 is always set to 0.0.

Namespace: Microsoft.Kinect
Assembly: Microsoft.Kinect (in microsoft.kinect.dll)

Community Additions

ADD
Show:
© 2015 Microsoft