Processing for Android

EN ES

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


PMatrix3D objMat = new PMatrix3D();

void setup() {
  fullScreen(P3D);
}

void draw() {
  getObjectMatrix(objMat);
}