Permalink
Browse files

make example consistent with default reset-on-double-click setting of…

… true
  • Loading branch information...
1 parent 4c2a549 commit 135efa2e667a47b63c452d41e7eddf772e15b1b5 @jdf committed Mar 4, 2009
Showing with 7 additions and 10 deletions.
  1. +2 −3 examples/HelloPeasy/HelloPeasy.pde
  2. +1 −1 resources/build.xml
  3. +2 −3 src/peasy/PeasyCam.java
  4. BIN web/HelloPeasy.jar
  5. +2 −3 web/index.html
@@ -5,9 +5,8 @@ PeasyCam cam;
void setup() {
size(200,200,P3D);
cam = new PeasyCam(this, 100);
- cam.setMinimumDistance(80);
- cam.setMaximumDistance(300);
- cam.setResetOnDoubleClick(true);
+ cam.setMinimumDistance(50);
+ cam.setMaximumDistance(500);
}
void draw() {
rotateX(-.5);
View
@@ -18,7 +18,7 @@
<property name="author" value="Jonathan Feinberg" />
<property name="copyright" value="(c) 2008" />
<property name="libraryName" value="PeasyCam" />
- <property name="versionNumber" value="0.4.0" />
+ <property name="versionNumber" value="0.4.1" />
<property name="yourLink" value="http://mrfeinberg.com" />
<property name="keywords" value="3D,camera,rotation" />
<property name="tested:platform" value="Windows" />
@@ -45,7 +45,7 @@
private final double startDistance;
private final Vector3D startCenter;
- private boolean resetOnDoubleClick = false;
+ private boolean resetOnDoubleClick = true;
private double minimumDistance = 1;
private double maximumDistance = Double.MAX_VALUE;
@@ -62,7 +62,7 @@
private Interp currentInterpolator = null;
private final Object interpolatorLock = new Object();
- public final String VERSION = "0.2.5";
+ public final String VERSION = "0.4.1";
public PeasyCam(final PApplet parent, final double distance)
{
@@ -102,7 +102,6 @@ protected void behave(final double velocity)
rotation = rotation.applyTo(new Rotation(Vector3D.plusK, velocity));
}
};
-
}
public void setMouseControlled(final boolean isMouseControlled)
View
Binary file not shown.
View
@@ -111,9 +111,8 @@
void setup() {
size(200,200,P3D);
cam = new PeasyCam(this, 100);
- cam.setMinimumDistance(80);
- cam.setMaximumDistance(300);
- cam.setResetOnDoubleClick(true);
+ cam.setMinimumDistance(50);
+ cam.setMaximumDistance(500);
}
void draw() {
rotateX(-.5);

0 comments on commit 135efa2

Please sign in to comment.