Share via


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.

Syntax

public Vector4 AccelerometerGetCurrentReading ()

Return Value

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

Remarks

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.

Requirements

Namespace: Microsoft.Kinect

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

See Also

Reference

KinectSensor Class
KinectSensor Members
Microsoft.Kinect Namespace