getPosition();
position[0] = x; position[1] = y; position[2] = z;
This function returns a float array containing the x,y and z location of the camera.
import processing.opengl.*; import carlucci.viewer.*; Viewer myViewer; void setup(){ size(800,600,OPENGL); myViewer = new Viewer(this, 100,200,300); float[] currentPosition = myViewer.getPosition(); }