/** * Sets the min zoom distance of the camera (default is 1) */ public void setMinDistance(float minDistance) { this.minDistance = minDistance; if (minDistance > distance) { zoomCamera(distance - minDistance); } }
/** * Sets the max zoom distance of the camera (default is 40) * @param maxDistance */ public void setMaxDistance(float maxDistance) { this.maxDistance = maxDistance; if (maxDistance < distance) { zoomCamera(maxDistance - distance); } }
public void onAnalog(String name, float value, float tpf) { if (name.equals(CameraInput.CHASECAM_MOVELEFT)) { rotateCamera(-value); } else if (name.equals(CameraInput.CHASECAM_MOVERIGHT)) { rotateCamera(value); } else if (name.equals(CameraInput.CHASECAM_UP)) { vRotateCamera(value); } else if (name.equals(CameraInput.CHASECAM_DOWN)) { vRotateCamera(-value); } else if (name.equals(CameraInput.CHASECAM_ZOOMIN)) { zoomCamera(-value); if (zoomin == false) { distanceLerpFactor = 0; } zoomin = true; } else if (name.equals(CameraInput.CHASECAM_ZOOMOUT)) { zoomCamera(+value); if (zoomin == true) { distanceLerpFactor = 0; } zoomin = false; } }
/** * Sets the max zoom distance of the camera (default is 40) * @param maxDistance */ public void setMaxDistance(float maxDistance) { this.maxDistance = maxDistance; if (maxDistance < distance) { zoomCamera(maxDistance - distance); } }
/** * Sets the min zoom distance of the camera (default is 1) */ public void setMinDistance(float minDistance) { this.minDistance = minDistance; if (minDistance > distance) { zoomCamera(distance - minDistance); } }
public void onAnalog(String name, float value, float tpf) { if (name.equals(CameraInput.CHASECAM_MOVELEFT)) { rotateCamera(-value); } else if (name.equals(CameraInput.CHASECAM_MOVERIGHT)) { rotateCamera(value); } else if (name.equals(CameraInput.CHASECAM_UP)) { vRotateCamera(value); } else if (name.equals(CameraInput.CHASECAM_DOWN)) { vRotateCamera(-value); } else if (name.equals(CameraInput.CHASECAM_ZOOMIN)) { zoomCamera(-value); if (zoomin == false) { distanceLerpFactor = 0; } zoomin = true; } else if (name.equals(CameraInput.CHASECAM_ZOOMOUT)) { zoomCamera(+value); if (zoomin == true) { distanceLerpFactor = 0; } zoomin = false; } }
public void onAnalog(String name, float value, float tpf) { if (name.equals(ChaseCamMoveLeft)) { rotateCamera(-value); } else if (name.equals(ChaseCamMoveRight)) { rotateCamera(value); } else if (name.equals(ChaseCamUp)) { vRotateCamera(value); } else if (name.equals(ChaseCamDown)) { vRotateCamera(-value); } else if (name.equals(ChaseCamZoomIn)) { zoomCamera(-value); if (zoomin == false) { distanceLerpFactor = 0; } zoomin = true; } else if (name.equals(ChaseCamZoomOut)) { zoomCamera(+value); if (zoomin == true) { distanceLerpFactor = 0; } zoomin = false; } }