public final SimpleVector get3DPoint(MouseEvent e, SimpleVector refPoint) {
SimpleVector result = Interact2D.reproject2D3DWS(camera, buffer,
e.getX() * SAMPLING_MODE_MULTIPLICAND,
e.getY() * SAMPLING_MODE_MULTIPLICAND).normalize();
result.scalarMul(camera.getPosition().distance(refPoint));
result.add(camera.getPosition());
return result;
}
To compute a point
1) in the direction of the point of the mouse event and
2) at the same distance from the camera as the reference point.
SAMPLING_MODE_MULTIPLICAND depends on your sampling mode
Hope that helps =)