The system variable pRotationY always contains the rotation of the device along the y axis in the frame previous to the current frame. If the sketch angleMode() is set to DEGREES, the value will be -90 to 90. If it is set to RADIANS, the value will be -PI/2 to PI/2.
pRotationY can also be used with rotationY to determine the rotate direction of the device along the Y-axis.
उदाहरण
संबंधित संदर्भ
accelerationX
The system variable accelerationX always contains the acceleration of the device along the x axis.
accelerationY
The system variable accelerationY always contains the acceleration of the device along the y axis.
accelerationZ
The system variable accelerationZ always contains the acceleration of the device along the z axis.
deviceMoved
The deviceMoved() function is called when the device is moved by more than the threshold value along X, Y or Z axis.