Viewer: A Processing Library for Interactive 3D sketches

getPositionInInt()

getPositionInInt();

Returns:

position[0] = x;
position[1] = y;
position[2] = z;

This function is the same as getPosition, but returns its values in int form.

Example:

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

Viewer myViewer;

void setup(){
  size(800,600,OPENGL);
  
  myViewer = new Viewer(this, 100,200,300);
  
  int[] currentPosition = myViewer.getPositionInInt();
}

Constructor

Functions

Movement

Boundaries

Jumping