Whenever I use peasyCam or a slider function there is an unwanted "ghost" image that follows my actual. Here I have made a simple box, but there is a "ghost" box that trails it. How can I fix this issue?
import peasy.*;
import peasy.org.apache.commons.math.*;
import peasy.org.apache.commons.math.geometry.*;
import peasy.test.*;
import controlP5.*;
import shapes3d.*;
import shapes3d.animation.*;
import shapes3d.utils.*;
ControlP5 jControl;
PeasyCam cam;
void setup(){
size(600,600,OPENGL);
background(0); cam = new PeasyCam(this, 100);
cam.setMinimumDistance(50); cam.setMaximumDistance(500); } void draw(){
lights();
fill(255);
translate(300,300,0);
box(10); }