Viewer: A Processing Library for Interactive 3D sketches

setWalkSpeed()

setWalkSpeed(float speed);

Or

setWalkSpeed(int speed);

This function sets the walk speed of the camera. The acceleration of the camera changes accordingly when this function is used. Values between 1 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.setWalkSpeed(10.5);
}

Constructor

Functions

Movement

Boundaries

Jumping