Hi all, I want to know how far can I go with PeasyCam, when I right-click and drag my mouse to zoom out.
I saw here: https://github.com/jdf/peasycam/blob/master/src/peasy/PeasyCam.java this line 58: private double maximumDistance = Double.MAX_VALUE;
but, when I use getDistance(); to my PeasyCam, and I println() the values, I get around 5300 before my object disappear.
I thought this was caused by the fact that it's a floating number and the values after the float reach the max lenght for a double, but I don't think this is the case, because I can zoom out more and more and getting higher values.
It's just my object disappear..
Can I move this point?
Thank you in advance
import peasy.*;
import peasy.org.apache.commons.math.*;
import peasy.org.apache.commons.math.geometry.*;
PeasyCam cam;
void setup() {
size(800, 600, P3D);
cam = new PeasyCam(this, 100);
}
void draw() {
background(255);
println(cam.getDistance());
sphere(100);
}