Processing for Android

EN ES

VRCamera

The VRCamera object provides some utility functions to facilitate setting the view in VR.


import processing.vr.*;

VRCamera cam;

void setup() {
  fullScreen(VR);
  cameraUp();
}

void draw() {
  background(200, 0, 150);
  cam.setPosition(0, 0, 400);
  //...
  cam.sticky();
  translate(0, 0, 200);
  circle(0, 0, 50);
  cam.noSticky();
}