public void resize(float width,float height){ this.viewportWidth = width; this.viewportHeight = height; this.position.set(width/2, height/2,height/2); this.near = 1; this.far = height; this.lookAt.set(width/2,height/2,0); this.lookAt(lookAt.x, lookAt.y, lookAt.z); this.fieldOfView = 90;//not 67 now final float zoom = this.getZoom(); this.setZoom(zoom); }
@Override public void setValues(Flip3DCamera target, int tweenType, float[] newValues) { switch(tweenType){ case Zoom: target.setZoom(newValues[0]); break; case XY: target.position.x = newValues[0]; target.position.y = newValues[1]; break; case ROTATION_Z: target.setAngleZ(newValues[0]); break; case ROTATION_X: target.setAngleX(newValues[0]); break; case ROTATION_Y: target.setAngleY(newValues[0]); break; default: assert false; } }