Viewer: A Processing Library for Interactive 3D sketches

getBounds()

getBounds();

Returns:

  bounds[0] = xNegBound;
  bounds[1] = xPosBound;
  bounds[2] = zNegBound;
  bounds[3] = zPosBound;

This function returns the current boundaries of the camera as a float array.

Example:

import processing.opengl.*;
import carlucci.viewer.*;

Viewer myViewer;

void setup(){
  size(800,600,OPENGL);
  
  myViewer = new Viewer(this);
  myViewer.setBounds(-500,500,-1000,1000);
  float[] currentBounds = myViewer.getBounds();
}

Constructor

Functions

Movement

Boundaries

Jumping