Viewer: A Processing Library for Interactive 3D sketches

setTurnSpeed()

setTurnSpeed(float speed);

This function sets the rotation speed of the camera. The acceleration of the camera rotation changes accordingly when this function is used. Values between 0.02 and 0.10 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.setTurnSpeed(0.05);
}

Constructor

Functions

Movement

Boundaries

Jumping