Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 14 additions & 2 deletions src/peasy/PeasyCam.java
Original file line number Diff line number Diff line change
Expand Up @@ -498,11 +498,23 @@ public void reset(final long animationTimeInMillis) {
animationTimeInMillis);
}

public void pan(final double dx, final double dy) {
center = center.add(rotation.applyTo(new Vector3D(dx, dy, 0)));
public void move(final double dx, final double dy, final double dz) {
center = center.add(rotation.applyTo(new Vector3D(dx, dy, dz)));
feed();
}

public void pan(final double dx, final double dy) {
move(dx, dy, 0);
}

public void pushIn(final double distance) {
move(0, 0, -distance);
}

public void pushOut(final double distance) {
move(0, 0, distance);
}

public void rotateX(final double angle) {
rotation = rotation.applyTo(new Rotation(Vector3D.plusI, angle));
feed();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

import peasy.PeasyCam;
import processing.core.PApplet;
import processing.core.PShape;
import processing.opengl.PGraphics3D;

public class Resizeable_Offscreen extends PApplet {
Expand Down