#!/usr/local/bin/php Obsessive Camera Direction

OCD Reference

Reference for OCD version 1.4 for use with Processing (BETA) version 125+. If you see any errors or have any comments, let me know.

Name

jump()

Examples

To view this content, you need to install Java from java.com

import damkjer.ocd.*;

Camera camera1;

void setup() {
  size(100, 100, P3D);

  camera1 = new Camera(this, 100, -125, 150);
}

void draw() {
  background(204);
  lights();
  camera1.feed();

  rotateY(PI/3);
  box(50);
}

void mousePressed() {
  camera1.jump(-100, -125, 150);
}

void mouseReleased() {
  camera1.jump(100, -125, 150);
}

Description

Instantly change the camera's position to the specified location.

Syntax

jump(locationX, locationY, locationZ)

Parameters

locationX

int or float: x coordinate for the camera location

locationY

int or float: y coordinate for the camera location

locationZ

int or float: z coordinate for the camera location

Returns

None

Usage

Web & Application

Related

aim()