Reference pRotationX

pRotationX

The system variable pRotationX always contains the rotation of the device along the x axis in the frame previous to the current frame. If the sketch angleMode() is set to DEGREES, the value will be -180 to 180. If it is set to RADIANS, the value will be -PI to PI.

pRotationX can also be used with rotationX to determine the rotate direction of the device along the X-axis.

Examples

This page is generated from the comments in src/events/acceleration.js . Please feel free to edit it and submit a pull request!

Related References