Processing for Android

Object matrix

The object matrix contains the XYZ vectors defining the eye coordinate system as the first three columns, and the eye position as the fourth. It can be used to compute things like the intersection between an object and the line of sight


import processing.vr.*;

PMatrix3D objMat = new PMatrix3D();

void setup() {
  fullScreen(STEREO);
}

void draw() {
  getObjectMatrix(objMat);
}