I have an urgent question about PeasyCam's damping property.. When I use PeasyCam to rotate a 3D object, after the mouse stops the object still moves with a decreasing velocity (damping). PeasyCam has a class called DampedAction for this movement. My question is: How can I change the damping value (original 0.16) or disable the damping property. For example in the PeasyCam sample bellow I would like to change (extend) this class in peasy library or Override it.. How is it possible to do it in this code:
import peasy.*;
PeasyCam cam;
void setup() {
size(800,600,P3D);
cam = new PeasyCam(this, 100);
cam.setMinimumDistance(50);
cam.setMaximumDistance(500);
}
void draw() {
rotateX(-.5);
rotateY(-.5);
background(0);
fill(255,0,0);
box(50);
pushMatrix();
translate(0,0,30);
fill(0,0,255);
box(5);
popMatrix();
}
Thanks for any help!..