// Draw a floor grid PVector orientation = getVRHMDVector(PROCESSING_VR_VECTORS.VIEW_DIR); // ... render grid logic
Perhaps the most exciting aspect of mobile development is the availability of sensors. A phone knows where it is, how it is moving, and which way it is facing. democratizes access to these sensors, moving them from the realm of engineering into the realm of art. // Draw a floor grid PVector orientation =
The accelerometer detects gravity and movement. By default, Processing maps the phone's orientation to accelX , accelY , and accelZ (where Z is facing you). how it is moving