Viewer: A Processing Library for Interactive 3D sketches

setJumpSpeed()

setJumpSpeed(float jumpSpeed);

Or

setJumpSpeed(int jumpSpeed);

This function is used to set the speed of the camera's jump (as in, the strength of the camera person's legs). Values between 5 and 20 will generally produce good results.

Example:

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

Viewer myViewer;

void setup(){
  size(800,600,OPENGL);
  
  myViewer = new Viewer(this);
  myViewer.setJumpSpeed(10);
}

Constructor

Functions

Movement

Boundaries

Jumping