Ray ray = new Ray(camera.getLocation(), camera.getLocation().add(camera.getDirection().mult(1000)));
Ray ray = new Ray(camera.getLocation(), camera.getDirection());
    public void performAction(float time) {        shotTime += time;        if(mouse.getMouseInput().isButtonDown(0) && shotTime > 0.1f) {            shotTime = 0;            Ray ray = new Ray(camera.getLocation(), camera.getLocation().add(camera.getDirection().mult(1000)));            PickResults results = new PickResults();                        Pick.doPick(scene,ray,results);                                    hits += results.getNumber();            hitItems = "";            if(results.getNumber() > 0) {            	for(int i = 0; i < results.getNumber(); i++) {            		hitItems += results.getNode(i).getName();            		if(i != results.getNumber() -1) {            			hitItems += ", ";            		}            	}            }            shots++;            results.clear();            text.print("Hits: " + hits + " Shots: " + shots + " : " + hitItems);        }    }