Viewer: A Processing Library for Interactive 3D sketches

setBounds()

setBounds(float xNegBoundary, float xPosBoundary, 
  float zNegBoundary, float zPosBoundary);

Or

setBounds(int xNegBoundary, int xPosBoundary, 
  int zNegBoundary, int zPosBoundary);

This function is used to set the camera's movement boundaries. Illegal boundaries (as in, the x negative boundary being a greater number than the x positive boundary) causes an error to be printed to the Processing console letting you know which frame you tried to set the boundaries in.

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);
}

Constructor

Functions

Movement

Boundaries

Jumping